mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-08-02 12:58:24 +00:00
The full room-in-roof geometry now lives in the epc_room_in_roof / epc_room_in_roof_surface child tables (#443 / Model #1665). The two flattened columns on epc_building_part -- room_in_roof_floor_area and room_in_roof_construction_age_band -- are redundant duplicates of epc_room_in_roof.floor_area / construction_age_band and are no longer read or written by the Model backend. No TS code in this repo references them either. No data migration: the values already live in epc_room_in_roof for re-ingested properties. ALTER TABLE epc_building_part DROP COLUMN room_in_roof_floor_area; ALTER TABLE epc_building_part DROP COLUMN room_in_roof_construction_age_band; ⚠️ Deploy ordering (destructive): apply this ONLY after the Model backend that no longer writes these columns is deployed to every environment. Dropping them while a backend that still writes them is live breaks every EPC save. Refs Hestia-Homes/Model#1665 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| lib | ||
| types | ||
| utils | ||
| middleware.test.ts | ||
| middleware.ts | ||