Add migration to fix missing item bio marker (#1295)

This commit is contained in:
ekzyis 2024-08-12 19:19:18 -05:00 committed by GitHub
parent ce7d2b888d
commit 454ad26bd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,4 @@
-- fix missing 'bio' marker for bios
UPDATE "Item" SET bio = 't' WHERE id IN (
SELECT "bioId" FROM users WHERE "bioId" IS NOT NULL
);