Merge pull request #218 from Hestia-Homes/migration/ei-rating
Some checks failed
Next.js Build Check / build (push) Has been cancelled

added envronment impact to db
This commit is contained in:
KhalimCK 2026-04-09 16:35:16 +01:00 committed by GitHub
commit ccc39c3fa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6342 additions and 0 deletions

View file

@ -0,0 +1 @@
ALTER TABLE "property_details_epc" ADD COLUMN "environment_impact_current" real;

File diff suppressed because it is too large Load diff

View file

@ -1170,6 +1170,13 @@
"when": 1775658752820,
"tag": "0166_melodic_crusher_hogan",
"breakpoints": true
},
{
"idx": 167,
"version": "7",
"when": 1775747945070,
"tag": "0167_wise_agent_zero",
"breakpoints": true
}
]
}

View file

@ -269,6 +269,8 @@ export const propertyDetailsEpc = pgTable(
lodgedCo2Emissions: real("lodged_co2_emissions"),
lodgedHeatDemand: real("lodged_heat_demand"),
hasBeenRemodelled: boolean("has_been_remodelled").default(false),
// additional fields
environment_impact_current: real("environment_impact_current"),
},
(table) => [
uniqueIndex("uq_property_details_epc_property_portfolio").on(