Revert: drop certificate_number column from property table

We decided the EPC certificate number only needs to travel through the
address2uprn pipeline internally and doesn't need a persisted column
on property (reverts #362).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Jun-te Kim 2026-07-07 14:15:36 +00:00
parent ce6a6ffa2d
commit 3bd63f7b96
4 changed files with 12022 additions and 1 deletions

View file

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

File diff suppressed because it is too large Load diff

View file

@ -1849,6 +1849,13 @@
"when": 1783430551377,
"tag": "0264_yummy_master_chief",
"breakpoints": true
},
{
"idx": 265,
"version": "7",
"when": 1783433702298,
"tag": "0265_drop_property_certificate_number",
"breakpoints": true
}
]
}

View file

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