mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
13 lines
238 B
MySQL
13 lines
238 B
MySQL
|
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;
|