From 9c349cc8ac653e94e15268e369a687430e33ab75 Mon Sep 17 00:00:00 2001 From: wlren Date: Wed, 19 Oct 2022 16:19:18 +0800 Subject: [PATCH] [questions][chore] migration --- .../migrations/20221019073812_/migration.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 apps/portal/prisma/migrations/20221019073812_/migration.sql diff --git a/apps/portal/prisma/migrations/20221019073812_/migration.sql b/apps/portal/prisma/migrations/20221019073812_/migration.sql new file mode 100644 index 00000000..ec31acd3 --- /dev/null +++ b/apps/portal/prisma/migrations/20221019073812_/migration.sql @@ -0,0 +1,14 @@ +/* + Warnings: + + - Made the column `totalYoe` on table `OffersBackground` required. This step will fail if there are existing NULL values in that column. + - Made the column `negotiationStrategy` on table `OffersOffer` required. This step will fail if there are existing NULL values in that column. + - Made the column `comments` on table `OffersOffer` required. This step will fail if there are existing NULL values in that column. + +*/ +-- AlterTable +ALTER TABLE "OffersBackground" ALTER COLUMN "totalYoe" SET NOT NULL; + +-- AlterTable +ALTER TABLE "OffersOffer" ALTER COLUMN "negotiationStrategy" SET NOT NULL, +ALTER COLUMN "comments" SET NOT NULL;