Skip to content

Commit e70b5e9

Browse files
authored
Merge pull request #11 from solaoi/fix_migration-error
fix migration error
2 parents e77ae8b + 1ad7f2f commit e70b5e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

db/migrations/20211010133505_/migration.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CREATE TABLE "new_Stub" (
2020
"sleep" INTEGER NOT NULL DEFAULT 0,
2121
"logs" TEXT NOT NULL,
2222
"ntimesError" INTEGER NOT NULL DEFAULT 0,
23-
"ntimesErrorStatusCode" TEXT NOT NULL,
23+
"ntimesErrorStatusCode" TEXT NOT NULL DEFAULT "500",
2424
"ntimesErrorCounter" INTEGER NOT NULL DEFAULT 0,
2525
"projectId" INTEGER NOT NULL,
2626
CONSTRAINT "Stub_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project" ("id") ON DELETE CASCADE ON UPDATE CASCADE

db/schema.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ model Stub {
8989
sleep Int @default(0)
9090
logs String
9191
ntimesError Int @default(0)
92-
ntimesErrorStatusCode String
92+
ntimesErrorStatusCode String @default("500")
9393
ntimesErrorCounter Int @default(0)
9494
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
9595
projectId Int

0 commit comments

Comments
 (0)