From 5397ceac2fdb772f7954d1a5bc21071587522972 Mon Sep 17 00:00:00 2001 From: richard483 Date: Sun, 28 Jan 2024 22:00:27 +0700 Subject: [PATCH] do migration --- .../migration.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 prisma/migrations/20240128150005_updated_some_schema/migration.sql diff --git a/prisma/migrations/20240128150005_updated_some_schema/migration.sql b/prisma/migrations/20240128150005_updated_some_schema/migration.sql new file mode 100644 index 0000000..5415b7c --- /dev/null +++ b/prisma/migrations/20240128150005_updated_some_schema/migration.sql @@ -0,0 +1,14 @@ +/* + Warnings: + + - You are about to drop the column `previousWorkplaceCount` on the `User` table. All the data in the column will be lost. + - You are about to drop the column `previousWorkplaceId` on the `User` table. All the data in the column will be lost. + - Made the column `companyId` on table `JobVacancy` required. This step will fail if there are existing NULL values in that column. + +*/ +-- AlterTable +ALTER TABLE "JobVacancy" ALTER COLUMN "companyId" SET NOT NULL; + +-- AlterTable +ALTER TABLE "User" DROP COLUMN "previousWorkplaceCount", +DROP COLUMN "previousWorkplaceId";