We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d88505 commit f46598fCopy full SHA for f46598f
packages/db/prisma/migrations/20251129063148_change_chat_created_by_to_optional/migration.sql
@@ -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
-
4
-- AlterTable
5
ALTER TABLE "Chat" ALTER COLUMN "createdById" DROP NOT NULL;
+
+-- Set all chats created by the guest user (id: 1) to have a NULL createdById.
+UPDATE "Chat" SET "createdById" = NULL WHERE "createdById" = '1';
0 commit comments