mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-07-12 13:28:55 +00:00
Add 'Secondary glazing' to the glazing pgEnum
Hyde 796 landlord descriptions include '100% secondary glazing (sap 9.94)' (39 properties), currently flattened to 'Single glazing' (U = 4.8 instead of secondary's 2.9). The calculator already supports secondary glazing (SAP10 code 5) — only this FE-owned enum and the model repo's GlazingType lacked a member. Additive ALTER TYPE ... ADD VALUE only, generated via drizzle-kit. Pairs with the model-repo GlazingType.SECONDARY change (Model#1416). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
5f669046f5
commit
4ec648fb1a
4 changed files with 11706 additions and 0 deletions
1
src/app/db/migrations/0256_glazing_secondary.sql
Normal file
1
src/app/db/migrations/0256_glazing_secondary.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TYPE "public"."glazing" ADD VALUE 'Secondary glazing' BEFORE 'Unknown';
|
||||
11697
src/app/db/migrations/meta/0256_snapshot.json
Normal file
11697
src/app/db/migrations/meta/0256_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1786,6 +1786,13 @@
|
|||
"when": 1782981990785,
|
||||
"tag": "0255_futuristic_mattie_franklin",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 256,
|
||||
"version": "7",
|
||||
"when": 1782989713551,
|
||||
"tag": "0256_glazing_secondary",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -180,6 +180,7 @@ export const GlazingValues: [string, ...string[]] = [
|
|||
"Triple glazing, pre-2002",
|
||||
"Triple glazing, 2002 or later",
|
||||
"Mixed glazing",
|
||||
"Secondary glazing",
|
||||
"Unknown",
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue