mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
change primary key for category votes
This commit is contained in:
parent
bcb9e33a01
commit
34771e96fe
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ BEGIN TRANSACTION;
|
|||
-- Add primary keys
|
||||
|
||||
ALTER TABLE "userNameLogs" ADD PRIMARY KEY ("userID");
|
||||
ALTER TABLE "categoryVotes" ADD PRIMARY KEY ("UUID", "userID", "category");
|
||||
ALTER TABLE "categoryVotes" ADD "id" SERIAL PRIMARY KEY;
|
||||
ALTER TABLE "sponsorTimes" ADD "id" SERIAL PRIMARY KEY;
|
||||
ALTER TABLE "config" ADD PRIMARY KEY ("key");
|
||||
ALTER TABLE "ratings" ADD "id" SERIAL PRIMARY KEY;
|
||||
|
|
|
@ -5,8 +5,8 @@ BEGIN TRANSACTION;
|
|||
ALTER TABLE "sponsorTimes" ADD PRIMARY KEY ("UUID");
|
||||
ALTER TABLE "vipUsers" ADD PRIMARY KEY ("userID");
|
||||
ALTER TABLE "userNames" ADD PRIMARY KEY ("userID");
|
||||
ALTER TABLE "categoryVotes" ADD PRIMARY KEY ("UUID", "category");
|
||||
ALTER TABLE "lockCategories" ADD "lockID" SERIAL PRIMARY KEY;
|
||||
ALTER TABLE "categoryVotes" ADD "id" SERIAL PRIMARY KEY;
|
||||
ALTER TABLE "lockCategories" ADD "id" SERIAL PRIMARY KEY;
|
||||
ALTER TABLE "warnings" ADD PRIMARY KEY ("userID", "issueTime");
|
||||
ALTER TABLE "shadowBannedUsers" ADD PRIMARY KEY ("userID");
|
||||
ALTER TABLE "unlistedVideos" ADD PRIMARY KEY ("videoID");
|
||||
|
|
Loading…
Reference in a new issue