Altering queue table with new ID key?
-
I know there’s mention of resolving a key alteration on the _ewwwio_images table awhile back related to MariaDB, but I’m getting this error on the _ewwwio_queue table after an update:
WordPress database error Incorrect table definition; there can be only one auto column and it must be defined as a key for query ALTER TABLE wp_ewwwio_queue ADD COLUMN id int unsigned NOT NULL AUTO_INCREMENT made by require_once(‘wp-admin/admin.php’), do_action(‘admin_init’), WP_Hook->do_action, WP_Hook->apply_filters, ewww_image_optimizer_admin_init, ewww_image_optimizer_upgrade, ewww_image_optimizer_install_table, dbDelta\
I can definitely see that on a new installation this table is created according to this schema, but I’m also miffed that the ewww_image_optimizer_install_table() function isn’t calling ALTER TABLE on the queue table here (though it is calling CREATE TABLE, so I’m guessing this gets converted automatically into an ALTER somehow by some DB servers).
Since I can’t the above field in actual use by any query, is the error safe to ignore? Or can I rectify the table manually by removing the existing index, adding the field, and correcting the primary key?
The topic ‘Altering queue table with new ID key?’ is closed to new replies.