From 542023219e4b21d90e922a5029cf3a709802642b Mon Sep 17 00:00:00 2001 From: zzhhaa Date: Wed, 18 Dec 2024 09:54:47 +0000 Subject: [PATCH] feat: remove unnecessary columns from db --- .../20241218095140_tidy_schema_for_update/migration.sql | 5 +++++ prisma/schema.prisma | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 prisma/migrations/20241218095140_tidy_schema_for_update/migration.sql diff --git a/prisma/migrations/20241218095140_tidy_schema_for_update/migration.sql b/prisma/migrations/20241218095140_tidy_schema_for_update/migration.sql new file mode 100644 index 0000000..2dcf5a4 --- /dev/null +++ b/prisma/migrations/20241218095140_tidy_schema_for_update/migration.sql @@ -0,0 +1,5 @@ +-- AlterTable +ALTER TABLE "gdhi" DROP COLUMN "itl_level"; + +-- AlterTable +ALTER TABLE "hpi" DROP COLUMN "lad_code"; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 26b07a0..08f212f 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -20,7 +20,6 @@ model BuildPrices { model GDHI { id Int @id @default(autoincrement()) - itlLevel String @map("itl_level") @db.VarChar(250) itl3 String @db.VarChar(250) region String @db.VarChar(250) gdhi2020 Float @map("gdhi_2020") @@ -32,7 +31,6 @@ model HPI { id Int @id @default(autoincrement()) region String @db.VarChar(250) itl3 String @db.VarChar(250) - ladCode String @map("lad_code") @db.VarChar(250) hpi2000 Float @map("hpi_2000") @@map("hpi")