mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 03:26:59 +03:00
DB migration: Hide any visible dearrow submissions from banned users
This commit is contained in:
11
databases/_upgrade_sponsorTimes_38.sql
Normal file
11
databases/_upgrade_sponsorTimes_38.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
UPDATE "titleVotes" SET "shadowHidden" = 1
|
||||
WHERE "UUID" IN (SELECT "UUID" FROM "titles" INNER JOIN "shadowBannedUsers" "bans" ON "titles"."userID" = "bans"."userID");
|
||||
|
||||
UPDATE "thumbnailVotes" SET "shadowHidden" = 1
|
||||
WHERE "UUID" IN (SELECT "UUID" FROM "thumbnails" INNER JOIN "shadowBannedUsers" "bans" ON "thumbnails"."userID" = "bans"."userID");
|
||||
|
||||
UPDATE "config" SET value = 38 WHERE key = 'version';
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user