From 1ad7f2fc10c2281a467ae887e1925b2c80ba8dca Mon Sep 17 00:00:00 2001 From: Kodai Aoyama Date: Mon, 11 Oct 2021 22:20:35 +0900 Subject: [PATCH] fix migration error --- db/migrations/20211010133505_/migration.sql | 2 +- db/schema.prisma | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrations/20211010133505_/migration.sql b/db/migrations/20211010133505_/migration.sql index 6ae4f80..2e68144 100644 --- a/db/migrations/20211010133505_/migration.sql +++ b/db/migrations/20211010133505_/migration.sql @@ -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 diff --git a/db/schema.prisma b/db/schema.prisma index ebae33a..0ad8c43 100644 --- a/db/schema.prisma +++ b/db/schema.prisma @@ -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