Skip to content

Commit

Permalink
feat: rename prices_paid table and columns
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Dec 12, 2024
1 parent 0e9965a commit ed45f12
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Alter table
ALTER TABLE "pricespaid" RENAME TO "prices_paid";

-- Alter table
ALTER TABLE "prices_paid" RENAME COLUMN "propertytype" TO "property_type";
ALTER TABLE "prices_paid" RENAME COLUMN "transactionidentifier" TO "transaction_identifier";
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "prices_paid" RENAME CONSTRAINT "pricespaid_pkey" TO "prices_paid_pkey";
6 changes: 3 additions & 3 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ model ItlLookup {

model PricesPaid {
id Int @id @default(autoincrement())
transactionIdentifier String? @map("transactionidentifier") @db.VarChar(250)
transactionIdentifier String? @map("transaction_identifier") @db.VarChar(250)
price Float?
postcode String? @db.VarChar(250)
propertyType String? @map("propertytype") @db.VarChar(250)
propertyType String? @map("property_type") @db.VarChar(250)
newBuild String? @map("newbuild") @db.VarChar(250)
@@map("pricespaid")
@@map("prices_paid")
}

model Rent {
Expand Down

0 comments on commit ed45f12

Please sign in to comment.