From da8e3f5e44f745ce4b36e524576649d48e7d573b Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 12 Sep 2024 10:15:33 +0700 Subject: [PATCH] chore: migrations --- .../20240912031352_update_db/migration.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 prisma/migrations/20240912031352_update_db/migration.sql diff --git a/prisma/migrations/20240912031352_update_db/migration.sql b/prisma/migrations/20240912031352_update_db/migration.sql new file mode 100644 index 0000000..94af57c --- /dev/null +++ b/prisma/migrations/20240912031352_update_db/migration.sql @@ -0,0 +1,19 @@ +/* + Warnings: + + - Added the required column `permitExpireDate` to the `Branch` table without a default value. This is not possible if the table is not empty. + - Added the required column `permitIssueDate` to the `Branch` table without a default value. This is not possible if the table is not empty. + - Added the required column `permitNo` to the `Branch` table without a default value. This is not possible if the table is not empty. + - Added the required column `citizenId` to the `User` table without a default value. This is not possible if the table is not empty. + - Added the required column `citizenIssue` to the `User` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE "Branch" ADD COLUMN "permitExpireDate" DATE NOT NULL, +ADD COLUMN "permitIssueDate" DATE NOT NULL, +ADD COLUMN "permitNo" TEXT NOT NULL; + +-- AlterTable +ALTER TABLE "User" ADD COLUMN "citizenExpire" DATE, +ADD COLUMN "citizenId" TEXT NOT NULL, +ADD COLUMN "citizenIssue" DATE NOT NULL;