From 20eefa803da74f7ec78dffaa3c5f7b743cb71d1d Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 7 Nov 2024 09:28:45 +0700 Subject: [PATCH] chore: migration --- .../migration.sql | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 prisma/migrations/20241107022809_add_code_field/migration.sql diff --git a/prisma/migrations/20241107022809_add_code_field/migration.sql b/prisma/migrations/20241107022809_add_code_field/migration.sql new file mode 100644 index 0000000..d7dc588 --- /dev/null +++ b/prisma/migrations/20241107022809_add_code_field/migration.sql @@ -0,0 +1,21 @@ +/* + Warnings: + + - You are about to drop the column `code` on the `QuotationWorker` table. All the data in the column will be lost. + - Added the required column `code` to the `Institution` table without a default value. This is not possible if the table is not empty. + - Added the required column `group` to the `Institution` table without a default value. This is not possible if the table is not empty. + - Added the required column `code` to the `Invoice` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE "Institution" ADD COLUMN "code" TEXT NOT NULL, +ADD COLUMN "group" TEXT NOT NULL; + +-- AlterTable +ALTER TABLE "Invoice" ADD COLUMN "code" TEXT NOT NULL; + +-- AlterTable +ALTER TABLE "Payment" ADD COLUMN "code" TEXT; + +-- AlterTable +ALTER TABLE "QuotationWorker" DROP COLUMN "code";