DB migration: Hide any visible dearrow submissions from banned users

This commit is contained in:
mini-bomba 2023-08-29 16:33:51 +02:00
parent 141f105b79
commit 2015cf1488
No known key found for this signature in database
GPG key ID: 30F8B138B4794886

View 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;