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_relationshipscolumnobject_idshould be primary key, which means, it has to auto-incremented (A I).Query Error:
#1067 - Wrong DEFAULT Value for 'object_id'ALTER TABLEwpstg0_term_relationshipsCHANGEobject_idobject_idBIGINT(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)
The topic ‘wrong default value for id variables like object_id in’ is closed to new replies.