Merge pull request #445 from Hestia-Homes/feat/drop-room-in-roof-flattened-cols-1665

feat(db): drop the two superseded flattened room-in-roof columns (Model #1665 follow-up)
This commit is contained in:
KhalimCK 2026-07-23 12:03:47 +01:00 committed by GitHub
commit 82897aa524
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13486 additions and 3 deletions

View file

@ -0,0 +1,2 @@
ALTER TABLE "epc_building_part" DROP COLUMN "room_in_roof_floor_area";--> statement-breakpoint
ALTER TABLE "epc_building_part" DROP COLUMN "room_in_roof_construction_age_band";

File diff suppressed because it is too large Load diff

View file

@ -1933,6 +1933,13 @@
"when": 1784798917178,
"tag": "0276_romantic_synch",
"breakpoints": true
},
{
"idx": 277,
"version": "7",
"when": 1784801404980,
"tag": "0277_woozy_prism",
"breakpoints": true
}
]
}

View file

@ -806,9 +806,11 @@ export const epcBuildingPart = pgTable(
// precision to match the other new #1665 floats and keep the round-trip exact.
wallUValue: doublePrecision("wall_u_value"),
// Room in roof (inlined)
roomInRoofFloorArea: real("room_in_roof_floor_area"),
roomInRoofConstructionAgeBand: text("room_in_roof_construction_age_band"),
// Room-in-roof geometry now lives in the epc_room_in_roof /
// epc_room_in_roof_surface child tables (Model #1665). The two flattened
// columns that used to sit here (room_in_roof_floor_area,
// room_in_roof_construction_age_band) were dropped as their redundant
// duplicates.
// Alternative wall 1 (inlined)
altWall1Area: real("alt_wall_1_area"),