changed lodgment date to date

This commit is contained in:
Khalim Conn-Kowlessar 2024-07-29 17:45:07 +01:00
parent b1ffa06e54
commit 258c22fb3a
4 changed files with 2541 additions and 5 deletions

View 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);

File diff suppressed because it is too large Load diff

View file

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

View file

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