I am working on a plugin development in WordPress and just created a table with code
global $wpdb;
$createSQL = "
CREATE TABLE `". $wpdb->prefix ."recipe_ratings` (
`id` bigint(20) NOT NULL,
`recipe_id` bigint(20) NOT NULL,
`rating` float NOT NULL,
`user_ip` varchar(32) NOT NULL
) ENGINE=InnoDB ". $wpdb->get_charset_collate() .";
";
require( ABSPATH . '/wp-admin/includes/upgrade.php' ); // to include dbDelta fn which allows us to modify the wp database
dbDelta( $createSQL );
But the table created does not show the edit, copy and delete options like the other tables. May be I need to enable something in the phpmyadmin interface but I am not sure what to do here.
No Edit, copy, delete option:
Expected Edit, Copy, Delete option