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:
Daniel Roth 2026-04-24 11:35:33 +01:00 committed by GitHub
commit 0f871409a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8629 additions and 3 deletions

View 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;

File diff suppressed because it is too large Load diff

View file

@ -1296,6 +1296,13 @@
"when": 1776962910255,
"tag": "0184_tiny_annihilus",
"breakpoints": true
},
{
"idx": 185,
"version": "7",
"when": 1777026653433,
"tag": "0185_slimy_mindworm",
"breakpoints": true
}
]
}

View file

@ -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"),