From 10c73ae2268a6f2c2c0f4819c20665b3fd4c4706 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Wed, 4 Sep 2024 14:28:29 +0700 Subject: [PATCH] fix: error updatedAt --- .../migration.sql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 prisma/migrations/20240904072815_remove_unnecessary/migration.sql diff --git a/prisma/migrations/20240904072815_remove_unnecessary/migration.sql b/prisma/migrations/20240904072815_remove_unnecessary/migration.sql new file mode 100644 index 0000000..7ded430 --- /dev/null +++ b/prisma/migrations/20240904072815_remove_unnecessary/migration.sql @@ -0,0 +1,20 @@ +/* + Warnings: + + - You are about to drop the column `createdAt` on the `BranchContact` table. All the data in the column will be lost. + - You are about to drop the column `createdByUserId` on the `BranchContact` table. All the data in the column will be lost. + - You are about to drop the column `updatedAt` on the `BranchContact` table. All the data in the column will be lost. + - You are about to drop the column `updatedByUserId` on the `BranchContact` table. All the data in the column will be lost. + +*/ +-- DropForeignKey +ALTER TABLE "BranchContact" DROP CONSTRAINT "BranchContact_createdByUserId_fkey"; + +-- DropForeignKey +ALTER TABLE "BranchContact" DROP CONSTRAINT "BranchContact_updatedByUserId_fkey"; + +-- AlterTable +ALTER TABLE "BranchContact" DROP COLUMN "createdAt", +DROP COLUMN "createdByUserId", +DROP COLUMN "updatedAt", +DROP COLUMN "updatedByUserId";