Skip to content

Commit

Permalink
Merge pull request #11 from solaoi/fix_migration-error
Browse files Browse the repository at this point in the history
fix migration error
  • Loading branch information
solaoi authored Oct 11, 2021
2 parents e77ae8b + 1ad7f2f commit e70b5e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/migrations/20211010133505_/migration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CREATE TABLE "new_Stub" (
"sleep" INTEGER NOT NULL DEFAULT 0,
"logs" TEXT NOT NULL,
"ntimesError" INTEGER NOT NULL DEFAULT 0,
"ntimesErrorStatusCode" TEXT NOT NULL,
"ntimesErrorStatusCode" TEXT NOT NULL DEFAULT "500",
"ntimesErrorCounter" INTEGER NOT NULL DEFAULT 0,
"projectId" INTEGER NOT NULL,
CONSTRAINT "Stub_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project" ("id") ON DELETE CASCADE ON UPDATE CASCADE
Expand Down
2 changes: 1 addition & 1 deletion db/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ model Stub {
sleep Int @default(0)
logs String
ntimesError Int @default(0)
ntimesErrorStatusCode String
ntimesErrorStatusCode String @default("500")
ntimesErrorCounter Int @default(0)
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
projectId Int
Expand Down

0 comments on commit e70b5e9

Please sign in to comment.