Skip to content

Commit 902cc48

Browse files
s
1 parent f46598f commit 902cc48

File tree

1 file changed

+2
-2
lines changed
  • packages/db/prisma/migrations/20251129063148_change_chat_created_by_to_optional

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
-- AlterTable
1+
-- First, remove the NOT NULL constraint on the createdById column.
22
ALTER TABLE "Chat" ALTER COLUMN "createdById" DROP NOT NULL;
33

4-
-- Set all chats created by the guest user (id: 1) to have a NULL createdById.
4+
-- Then, set all chats created by the guest user (id: 1) to have a NULL createdById.
55
UPDATE "Chat" SET "createdById" = NULL WHERE "createdById" = '1';

0 commit comments

Comments
 (0)