From 82ac52769f7ea2422c610270b28069f228e776dd Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Wed, 18 Oct 2023 16:41:25 +1100 Subject: [PATCH] Added new unit for materials --- src/app/db/migrations/meta/_journal.json | 7 +++++++ src/app/db/schema/materials.ts | 2 +- tsconfig.json | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/app/db/migrations/meta/_journal.json b/src/app/db/migrations/meta/_journal.json index 1e388949..b3c0790d 100644 --- a/src/app/db/migrations/meta/_journal.json +++ b/src/app/db/migrations/meta/_journal.json @@ -281,6 +281,13 @@ "when": 1697607380730, "tag": "0039_old_nuke", "breakpoints": true + }, + { + "idx": 40, + "version": "5", + "when": 1697607635913, + "tag": "0040_dashing_giant_man", + "breakpoints": true } ] } \ No newline at end of file diff --git a/src/app/db/schema/materials.ts b/src/app/db/schema/materials.ts index bb82239d..376eb752 100644 --- a/src/app/db/schema/materials.ts +++ b/src/app/db/schema/materials.ts @@ -22,7 +22,7 @@ export const materialTypeEnum = pgEnum("type", MaterialType); export const DepthUnit: [string, ...string[]] = ["mm"]; export const depthUnitEnum = pgEnum("depth_unit", DepthUnit); -export const CostUnit: [string, ...string[]] = ["gbp_sq_meter"]; +export const CostUnit: [string, ...string[]] = ["gbp_sq_meter", "gbp_per_unit"]; export const costUnitEnum = pgEnum("cost_unit", CostUnit); export const RValueUnit: [string, ...string[]] = [ diff --git a/tsconfig.json b/tsconfig.json index 64681559..7f10c944 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "allowSyntheticDefaultImports": true, - "target": "es5", - // "target": "ESNext", + // "target": "es5", + "target": "ESNext", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true,