stacker.news/prisma/migrations/20240812234244_update_bio_m.../migration.sql

5 lines
138 B
MySQL
Raw Normal View History

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