Make id column as AUTO INCREMENT on plugin activation
Add the autoincrement keyword after `id` int NOT NULL: public static function activate() { global $wpdb; $sql = “CREATE TABLE `{$wpdb->base_prefix}employee` ( `id` int NOT NULL autoincrement, `name` varchar(255) NOT NULL, `dob` date NOT NULL, `gender` int NOT NULL, `email` varchar(255) NOT NULL, `joining_date` date NOT NULL, `address` varchar(255) NOT NULL, `salary_package` int NOT NULL, … Read more