-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from theopensystemslab/oz/prices-paid-table
feat: rename `prices_paid` table
- Loading branch information
Showing
4 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
prisma/migrations/20241212122823_rename_prices_paid_table_and_columns/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
2 changes: 2 additions & 0 deletions
2
prisma/migrations/20241212123044_rename_prices_paid_constraint/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 6 additions & 0 deletions
6
prisma/migrations/20241212123358_make_prices_paid_fields_required/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- AlterTable | ||
ALTER TABLE "prices_paid" ALTER COLUMN "transaction_identifier" SET NOT NULL, | ||
ALTER COLUMN "price" SET NOT NULL, | ||
ALTER COLUMN "postcode" SET NOT NULL, | ||
ALTER COLUMN "property_type" SET NOT NULL, | ||
ALTER COLUMN "newbuild" SET NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters