This commit is contained in:
bkellam 2025-11-28 22:48:55 -08:00
parent f46598fddb
commit 902cc484a2

View file

@ -1,5 +1,5 @@
-- AlterTable -- First, remove the NOT NULL constraint on the createdById column.
ALTER TABLE "Chat" ALTER COLUMN "createdById" DROP NOT NULL; ALTER TABLE "Chat" ALTER COLUMN "createdById" DROP NOT NULL;
-- Set all chats created by the guest user (id: 1) to have a NULL createdById. -- Then, set all chats created by the guest user (id: 1) to have a NULL createdById.
UPDATE "Chat" SET "createdById" = NULL WHERE "createdById" = '1'; UPDATE "Chat" SET "createdById" = NULL WHERE "createdById" = '1';