mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-07-22 00:38:36 +00:00
Add certificate_number column to property table
The address2uprn lookup already returns the EPC certificate number alongside the UPRN, but only the UPRN is persisted today. This adds a nullable column so a follow-up change can start saving it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
668588d3ce
commit
114ccbba02
4 changed files with 11809 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "property" ADD COLUMN "certificate_number" text;
|
||||
11800
src/app/db/migrations/meta/0263_snapshot.json
Normal file
11800
src/app/db/migrations/meta/0263_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1835,6 +1835,13 @@
|
|||
"when": 1783420235209,
|
||||
"tag": "0262_wandering_nocturne",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 263,
|
||||
"version": "7",
|
||||
"when": 1783425021407,
|
||||
"tag": "0263_add_property_certificate_number",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -117,6 +117,7 @@ export const property = pgTable(
|
|||
|
||||
creationStatus: propertyCreationStatusEnum("creation_status").notNull(),
|
||||
uprn: bigint("uprn", { mode: "bigint" }),
|
||||
certificateNumber: text("certificate_number"),
|
||||
|
||||
landlordPropertyId: text("landlord_property_id"),
|
||||
buildingReferenceNumber: bigint("building_reference_number", {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue