Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.434 kb
ALTER TABLE collections_votes
ADD UNIQUE (collection_id, user_id),
DROP PRIMARY KEY,
ADD COLUMN id INTEGER UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY FIRST;
-- Note this was tricky, I hope it turns out well for you.
ALTER TABLE collection_subscriptions
ADD UNIQUE (collection_id, user_id),
ADD KEY (`user_id`),
DROP PRIMARY KEY,
ADD COLUMN id INTEGER UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY FIRST;
Jump to Line
Something went wrong with that request. Please try again.