mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
parent
94b82b6865
commit
00858b6633
1 changed files with 12 additions and 0 deletions
12
databases/_upgrade_sponsorTimes_23.sql
Normal file
12
databases/_upgrade_sponsorTimes_23.sql
Normal file
|
@ -0,0 +1,12 @@
|
|||
BEGIN TRANSACTION;
|
||||
|
||||
DELETE FROM "userNames" WHERE ctid NOT IN (
|
||||
SELECT MIN(ctid) FROM "userNames"
|
||||
GROUP BY "userID"
|
||||
);
|
||||
|
||||
ALTER TABLE "userNames" ADD UNIQUE("userID");
|
||||
|
||||
UPDATE "config" SET value = 23 WHERE key = 'version';
|
||||
|
||||
COMMIT;
|
Loading…
Reference in a new issue