migrating db to take survey data

This commit is contained in:
Khalim Conn-Kowlessar 2024-07-25 19:18:43 +01:00
parent 5ac0ba8f08
commit 0415a5543b
6 changed files with 5040 additions and 2 deletions

View file

@ -0,0 +1 @@
ALTER TABLE "energy_assessments" RENAME COLUMN "environmentImpactPotential" TO "environment_impact_potential";

View file

@ -0,0 +1 @@
ALTER TABLE "energy_assessments" ALTER COLUMN "county" SET DATA TYPE text;

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -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
}
]
}

View file

@ -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(),