Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P7505
Schema change for T189101
Active
Public
Actions
Authored by
Lucas_Werkmeister_WMDE
on Aug 31 2018, 5:26 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Wikidata
Wikibase-Quality
Wikibase-Quality-Constraints
Referenced Files
F25563389: Schema change for T189101
Aug 31 2018, 5:26 PM
2018-08-31 17:26:23 (UTC+0)
Subscribers
None
--
-- T180834: Add numeric primary key to wbqc_constraints
-- (replacing constraint_guid as primary key)
ALTER TABLE /*_*/wbqc_constraints
ADD COLUMN constraint_id int unsigned NOT NULL AUTO_INCREMENT FIRST,
DROP PRIMARY KEY,
ADD PRIMARY KEY (constraint_id);
CREATE UNIQUE INDEX /*i*/wbqc_constraints_guid_uniq ON /*_*/wbqc_constraints (constraint_guid);
Event Timeline
Lucas_Werkmeister_WMDE
created this paste.
Aug 31 2018, 5:26 PM
2018-08-31 17:26:22 (UTC+0)
Lucas_Werkmeister_WMDE
mentioned this in
T189101: Deploy schema change for adding numeric primary key to wbqc_constraints table
.
Log In to Comment