mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
migrate uprn to big integer
This commit is contained in:
parent
7148eefa8b
commit
3f6c00ce13
5 changed files with 1727 additions and 4 deletions
1
src/app/db/migrations/0073_youthful_havok.sql
Normal file
1
src/app/db/migrations/0073_youthful_havok.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "solar" ALTER COLUMN "uprn" SET DATA TYPE bigint USING "uprn"::bigint;
|
||||
1715
src/app/db/migrations/meta/0073_snapshot.json
Normal file
1715
src/app/db/migrations/meta/0073_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -512,6 +512,13 @@
|
|||
"when": 1720604604887,
|
||||
"tag": "0072_plain_vapor",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 73,
|
||||
"version": "5",
|
||||
"when": 1720605222664,
|
||||
"tag": "0073_youthful_havok",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
import {
|
||||
bigserial,
|
||||
text,
|
||||
timestamp,
|
||||
pgTable,
|
||||
real,
|
||||
jsonb,
|
||||
bigint,
|
||||
} from "drizzle-orm/pg-core";
|
||||
import { InferModel } from "drizzle-orm";
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ export const Solar = pgTable("solar", {
|
|||
id: bigserial("id", { mode: "bigint" }).primaryKey(),
|
||||
longitude: real("longitude").notNull(),
|
||||
latitude: real("latitude").notNull(),
|
||||
uprn: text("uprn").notNull(),
|
||||
uprn: bigint("uprn", { mode: "bigint" }).notNull(),
|
||||
createdAt: timestamp("created_at", {
|
||||
precision: 6,
|
||||
withTimezone: true,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"target": "es5",
|
||||
// "target": "ESNext",
|
||||
// "target": "es5",
|
||||
"target": "ESNext",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue