Skip to content

Commit

Permalink
fix(prisma): resolve migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Jul 18, 2023
1 parent a6017c0 commit b636afa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 44 deletions.
11 changes: 0 additions & 11 deletions prisma/migrations/20230714171654_/migration.sql

This file was deleted.

24 changes: 0 additions & 24 deletions prisma/migrations/20230714181336_/migration.sql

This file was deleted.

9 changes: 0 additions & 9 deletions prisma/migrations/20230717183439_/migration.sql

This file was deleted.

14 changes: 14 additions & 0 deletions prisma/migrations/20230718150507_/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- AlterTable
ALTER TABLE "Goal" ADD COLUMN "priorityId" INTEGER;

-- CreateTable
CREATE TABLE "Priority" (
"id" SERIAL NOT NULL,
"title" TEXT NOT NULL,
"value" INTEGER NOT NULL,

CONSTRAINT "Priority_pkey" PRIMARY KEY ("id")
);

-- AddForeignKey
ALTER TABLE "Goal" ADD CONSTRAINT "Goal_priorityId_fkey" FOREIGN KEY ("priorityId") REFERENCES "Priority"("id") ON DELETE SET NULL ON UPDATE CASCADE;

0 comments on commit b636afa

Please sign in to comment.