mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Merge pull request #244 from Hestia-Homes/feature/new-epc-tables
EPC tables: window transmission data source is text not int
This commit is contained in:
commit
38adea6e2a
4 changed files with 8627 additions and 2 deletions
2
src/app/db/migrations/0187_mean_salo.sql
Normal file
2
src/app/db/migrations/0187_mean_salo.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE "epc_window" RENAME COLUMN "pvc_frame" TO "frame_material" DROP NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "epc_window" ALTER COLUMN "transmission_data_source" SET DATA TYPE text;
|
||||
8616
src/app/db/migrations/meta/0187_snapshot.json
Normal file
8616
src/app/db/migrations/meta/0187_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1310,6 +1310,13 @@
|
|||
"when": 1777028605680,
|
||||
"tag": "0186_equal_baron_zemo",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 187,
|
||||
"version": "7",
|
||||
"when": 1777307158192,
|
||||
"tag": "0187_mean_salo",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -732,7 +732,6 @@ export const epcWindow = pgTable(
|
|||
.notNull()
|
||||
.references(() => epcProperty.id),
|
||||
|
||||
pvcFrame: text("pvc_frame").notNull(),
|
||||
glazingGap: text("glazing_gap").notNull(),
|
||||
orientation: text("orientation").notNull(),
|
||||
windowType: text("window_type").notNull(),
|
||||
|
|
@ -743,12 +742,13 @@ export const epcWindow = pgTable(
|
|||
windowLocation: text("window_location").notNull(),
|
||||
windowWallType: text("window_wall_type").notNull(),
|
||||
permanentShuttersPresent: boolean("permanent_shutters_present").notNull(),
|
||||
frameMaterial: text("frame_material"),
|
||||
frameFactor: real("frame_factor"),
|
||||
permanentShuttersInsulated: text("permanent_shutters_insulated"),
|
||||
|
||||
// Transmission details (inlined)
|
||||
transmissionUValue: real("transmission_u_value"),
|
||||
transmissionDataSource: integer("transmission_data_source"),
|
||||
transmissionDataSource: text("transmission_data_source"),
|
||||
transmissionSolarTransmittance: real("transmission_solar_transmittance"),
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue