mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 22:17:14 +03:00
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;
|
||||||
Reference in New Issue
Block a user