mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
migrating db to take survey data
This commit is contained in:
parent
5ac0ba8f08
commit
0415a5543b
6 changed files with 5040 additions and 2 deletions
1
src/app/db/migrations/0076_steep_whirlwind.sql
Normal file
1
src/app/db/migrations/0076_steep_whirlwind.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "energy_assessments" RENAME COLUMN "environmentImpactPotential" TO "environment_impact_potential";
|
||||
1
src/app/db/migrations/0077_ambitious_salo.sql
Normal file
1
src/app/db/migrations/0077_ambitious_salo.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "energy_assessments" ALTER COLUMN "county" SET DATA TYPE text;
|
||||
2512
src/app/db/migrations/meta/0076_snapshot.json
Normal file
2512
src/app/db/migrations/meta/0076_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
2510
src/app/db/migrations/meta/0077_snapshot.json
Normal file
2510
src/app/db/migrations/meta/0077_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -533,6 +533,20 @@
|
|||
"when": 1721928302758,
|
||||
"tag": "0075_even_phalanx",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 76,
|
||||
"version": "5",
|
||||
"when": 1721930898397,
|
||||
"tag": "0076_steep_whirlwind",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 77,
|
||||
"version": "5",
|
||||
"when": 1721931253048,
|
||||
"tag": "0077_ambitious_salo",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -26,7 +26,7 @@ export const energyAssessment = pgTable("energy_assessments", {
|
|||
posttown: text("posttown").notNull(),
|
||||
postcode: text("postcode").notNull(),
|
||||
address: text("address").notNull(),
|
||||
county: text("county").array(),
|
||||
county: text("county"),
|
||||
constituency: text("constituency"),
|
||||
constituencyLabel: text("constituency_label"),
|
||||
lowEnergyFixedLightCount: text("low_energy_fixed_light_count").notNull(),
|
||||
|
|
@ -34,7 +34,7 @@ export const energyAssessment = pgTable("energy_assessments", {
|
|||
mainheatEnergyEff: text("mainheat_energy_eff").notNull(),
|
||||
windowsEnvEff: text("windows_env_eff").notNull(),
|
||||
lightingEnergyEff: text("lighting_energy_eff").notNull(),
|
||||
environmentImpactPotential: text("environmentImpactPotential").notNull(),
|
||||
environmentImpactPotential: text("environment_impact_potential").notNull(),
|
||||
mainheatcontDescription: text("mainheatcont_description").notNull(),
|
||||
sheatingEnergyEff: text("sheating_energy_eff").notNull(),
|
||||
localAuthority: text("local_authority").notNull(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue