Skip to content

Commit f46598f

Browse files
nit
1 parent 3d88505 commit f46598f

File tree

1 file changed

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

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
-- Set all chats created by the guest user (id: 1) to have a NULL createdById.
2-
UPDATE "Chat" SET "createdById" = NULL WHERE "createdById" = '1';
3-
41
-- AlterTable
52
ALTER TABLE "Chat" ALTER COLUMN "createdById" DROP NOT NULL;
3+
4+
-- Set all chats created by the guest user (id: 1) to have a NULL createdById.
5+
UPDATE "Chat" SET "createdById" = NULL WHERE "createdById" = '1';

0 commit comments

Comments
 (0)