Skip to content

Commit

Permalink
feat: gas_bills column rename migration
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Dec 11, 2024
1 parent 4cb34ff commit 461fb35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "gas_bills" RENAME COLUMN "bill" TO "kwh_cost_pence";
ALTER TABLE "gas_bills" RENAME COLUMN "itl" TO "itl1";
ALTER TABLE "gas_bills" ALTER COLUMN "kwh_cost_pence" SET NOT NULL;
ALTER TABLE "gas_bills" ALTER COLUMN "itl1" SET NOT NULL;
4 changes: 2 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ model SocialRent {
model GasBills {
id Int @id
region String @map("Region") @db.VarChar
itl String @db.VarChar
bill Float
itl1 String @db.VarChar
kwh_cost_pence Float
@@map("gas_bills")
}

0 comments on commit 461fb35

Please sign in to comment.