wrong default value for id variables like object_id in
-
Hi.
I’m wondering, what is a correct default value for id variables in a database?
E.g., in..._term_relationships
columnobject_id
should be primary key, which means, it has to auto-incremented (A I).Query Error:
#1067 - Wrong DEFAULT Value for 'object_id'ALTER TABLE
wpstg0_term_relationships
CHANGEobject_id
object_id
BIGINT(20) UNSIGNED NOT NULL DEFAULT '0' AUTO_INCREMENT, add PRIMARY KEY (object_id
);I tried other numbers (1, 300, 6000), and failed as well (although, 1 was accepted as default. The A I didn’t work, anyway.).
Can you help me, please?PS:
I’m using the plugin WP Staging – what explains the strange prefix in the table names.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.