SponsorBlockServer/databases/_upgrade_private_8.sql

15 lines
472 B
MySQL
Raw Normal View History

2022-05-10 20:06:24 +02:00
BEGIN TRANSACTION;
-- Add primary keys
2022-05-10 20:25:47 +02:00
ALTER TABLE "userNameLogs" ADD "id" SERIAL PRIMARY KEY;
2022-05-10 20:20:07 +02:00
ALTER TABLE "categoryVotes" ADD "id" SERIAL PRIMARY KEY;
2022-05-10 20:06:24 +02:00
ALTER TABLE "sponsorTimes" ADD "id" SERIAL PRIMARY KEY;
ALTER TABLE "config" ADD PRIMARY KEY ("key");
ALTER TABLE "ratings" ADD "id" SERIAL PRIMARY KEY;
2022-05-10 20:27:43 +02:00
ALTER TABLE "tempVipLog" ADD "id" SERIAL PRIMARY KEY;
2022-05-10 20:34:22 +02:00
ALTER TABLE "votes" ADD "id" SERIAL PRIMARY KEY;
2022-05-10 20:06:24 +02:00
UPDATE "config" SET value = 8 WHERE key = 'version';
COMMIT;