mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
Merge pull request #241 from Hestia-Homes/feature/new-epc-tables
Set address columns to NotNull on new EPC table
This commit is contained in:
commit
0f871409a6
4 changed files with 8629 additions and 3 deletions
3
src/app/db/migrations/0185_slimy_mindworm.sql
Normal file
3
src/app/db/migrations/0185_slimy_mindworm.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE "epc_property" ALTER COLUMN "address_line_1" SET NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "epc_property" ALTER COLUMN "post_town" SET NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "epc_property" ALTER COLUMN "postcode" SET NOT NULL;
|
||||
8616
src/app/db/migrations/meta/0185_snapshot.json
Normal file
8616
src/app/db/migrations/meta/0185_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1296,6 +1296,13 @@
|
|||
"when": 1776962910255,
|
||||
"tag": "0184_tiny_annihilus",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 185,
|
||||
"version": "7",
|
||||
"when": 1777026653433,
|
||||
"tag": "0185_slimy_mindworm",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -435,10 +435,10 @@ export const epcProperty = pgTable(
|
|||
calculationSoftwareVersion: text("calculation_software_version"),
|
||||
|
||||
// Address
|
||||
addressLine1: text("address_line_1"),
|
||||
addressLine1: text("address_line_1").notNull(),
|
||||
addressLine2: text("address_line_2"),
|
||||
postTown: text("post_town"),
|
||||
postcode: text("postcode"),
|
||||
postTown: text("post_town").notNull(),
|
||||
postcode: text("postcode").notNull(),
|
||||
regionCode: text("region_code"),
|
||||
countryCode: text("country_code"),
|
||||
languageCode: text("language_code"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue