Files
ulitka/prisma/migrations/20260919194022_project_fix/migration.sql
T
vadim 7b999a670c
Gitea Actions Demo / Deploy (push) Failing after 18s
init
2026-09-24 10:34:27 +03:00

15 lines
472 B
SQL

/*
Warnings:
- Added the required column `ownerId` to the `project` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "project" ADD COLUMN "ownerId" TEXT NOT NULL;
-- CreateIndex
CREATE INDEX "project_ownerId_idx" ON "project"("ownerId");
-- AddForeignKey
ALTER TABLE "project" ADD CONSTRAINT "project_ownerId_fkey" FOREIGN KEY ("ownerId") REFERENCES "user"("id") ON DELETE RESTRICT ON UPDATE CASCADE;