mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
changed lodgment date to date
This commit is contained in:
parent
b1ffa06e54
commit
258c22fb3a
4 changed files with 2541 additions and 5 deletions
2
src/app/db/migrations/0080_glossy_avengers.sql
Normal file
2
src/app/db/migrations/0080_glossy_avengers.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE "energy_assessments" ALTER COLUMN "lodgement_date" SET DATA TYPE date;--> statement-breakpoint
|
||||
ALTER TABLE "energy_assessments" ALTER COLUMN "lodgement_datetime" SET DATA TYPE timestamp (6);
|
||||
2528
src/app/db/migrations/meta/0080_snapshot.json
Normal file
2528
src/app/db/migrations/meta/0080_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -561,6 +561,13 @@
|
|||
"when": 1722007913448,
|
||||
"tag": "0079_chemical_power_pack",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 80,
|
||||
"version": "5",
|
||||
"when": 1722269231130,
|
||||
"tag": "0080_glossy_avengers",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -8,6 +8,7 @@ import {
|
|||
integer,
|
||||
bigint,
|
||||
boolean,
|
||||
date,
|
||||
} from "drizzle-orm/pg-core";
|
||||
import { InferModel } from "drizzle-orm";
|
||||
|
||||
|
|
@ -104,14 +105,12 @@ export const energyAssessment = pgTable("energy_assessments", {
|
|||
hotWaterCostPotential: text("hot_water_cost_potential").notNull(),
|
||||
lightingCostCurrent: text("lighting_cost_current").notNull(),
|
||||
energyConsumptionCurrent: text("energy_consumption_current").notNull(),
|
||||
lodgementDate: timestamp("lodgement_date", {
|
||||
precision: 6,
|
||||
withTimezone: true,
|
||||
}).notNull(),
|
||||
lodgementDate: date("lodgement_date").notNull(), // Updated to date
|
||||
lodgementDatetime: timestamp("lodgement_datetime", {
|
||||
precision: 6,
|
||||
withTimezone: true,
|
||||
withTimezone: false,
|
||||
}).notNull(),
|
||||
|
||||
mainheatDescription: text("mainheat_description").notNull(),
|
||||
floorHeight: real("floor_height").notNull(),
|
||||
glazedType: text("glazed_type").notNull(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue