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:
Jun-te Kim 2026-07-07 11:50:59 +00:00
parent 668588d3ce
commit 114ccbba02
4 changed files with 11809 additions and 0 deletions

View file

@ -0,0 +1 @@
ALTER TABLE "property" ADD COLUMN "certificate_number" text;

File diff suppressed because it is too large Load diff

View file

@ -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
}
]
}

View file

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