Files
olehhapuk 98b2e0ce4b
CI / Lint, types, build, tests (push) Canceled after 0s
CI / Docker images build (push) Canceled after 0s
update
2026-12-03 10:53:09 +02:00

4 lines
375 B
SQL

ALTER TYPE "conversation_type" ADD VALUE 'group';--> statement-breakpoint
ALTER TABLE "conversation" ADD COLUMN "name" text;--> statement-breakpoint
ALTER TABLE "conversation" ADD COLUMN "owner_id" text;--> statement-breakpoint
ALTER TABLE "conversation" ADD CONSTRAINT "conversation_owner_id_user_id_fkey" FOREIGN KEY ("owner_id") REFERENCES "user"("id") ON DELETE SET NULL;