mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
s
This commit is contained in:
parent
f46598fddb
commit
902cc484a2
1 changed files with 2 additions and 2 deletions
|
|
@ -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';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue