mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 04:04:16 +00:00
quote all symbols in hellspawn upgrade script
This commit is contained in:
@@ -11,23 +11,23 @@ The following script will correct any local or remote hellspawns in the database
|
|||||||
|
|
||||||
```postgresql
|
```postgresql
|
||||||
/* Remove "instance is marked as NSFW" hellspawns */
|
/* Remove "instance is marked as NSFW" hellspawns */
|
||||||
UPDATE note
|
UPDATE "note"
|
||||||
SET cw = null
|
SET "cw" = null
|
||||||
WHERE
|
WHERE
|
||||||
"renoteId" IS NOT NULL
|
"renoteId" IS NOT NULL
|
||||||
AND "text" IS NULL
|
AND "text" IS NULL
|
||||||
AND cw = 'Instance is marked as NSFW'
|
AND "cw" = 'Instance is marked as NSFW'
|
||||||
AND "replyId" IS NULL
|
AND "replyId" IS NULL
|
||||||
AND "hasPoll" = false
|
AND "hasPoll" = false
|
||||||
AND "fileIds" = '{}';
|
AND "fileIds" = '{}';
|
||||||
|
|
||||||
/* Fix legacy / user-created hellspawns */
|
/* Fix legacy / user-created hellspawns */
|
||||||
UPDATE note
|
UPDATE "note"
|
||||||
SET text = '.'
|
SET "text" = '.'
|
||||||
WHERE
|
WHERE
|
||||||
"renoteId" IS NOT NULL
|
"renoteId" IS NOT NULL
|
||||||
AND "text" IS NULL
|
AND "text" IS NULL
|
||||||
AND cw IS NOT NULL
|
AND "cw" IS NOT NULL
|
||||||
AND "replyId" IS NULL
|
AND "replyId" IS NULL
|
||||||
AND "hasPoll" = false
|
AND "hasPoll" = false
|
||||||
AND "fileIds" = '{}';
|
AND "fileIds" = '{}';
|
||||||
|
|||||||
Reference in New Issue
Block a user