Table wp_yoast_seo_meta needs primary key
-
Our managed MySQL 8.0 database has the option sql_require_primary_key set to on. This means every table should have a primary key. I think having this option switched on makes good sense as the primary key is the most efficient way for finding and updating table rows.
In the original definition for wp_yoast_seo_meta there is no primary key, there is a unique index on object_id. This index has the same effect as setting the object_id as primary key.
I would recommend to replace the unique index with primary key to make your plugin compatible with more MySQL setups.
Andre
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Table wp_yoast_seo_meta needs primary key’ is closed to new replies.