Skip to content

Commit 30eb01e

Browse files
committed
Fix double table
1 parent 12b5da6 commit 30eb01e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/common-postgres/migrations/001-init.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@ export async function up(db: Kysely<any>) {
1818
.addColumn('shortname', 'varchar(8)', (col) => col.notNull())
1919
.execute()
2020

21-
await db.schema
22-
.createTable('measurement')
23-
.addColumn('time', 'timestamptz', (col) => col.notNull())
24-
.addColumn('source', 'text', (col) => col.notNull())
25-
.addColumn('temperature', 'double precision', (col) => col.notNull())
26-
.addColumn('humidity', 'double precision', (col) => col.notNull())
27-
.addColumn('pressure', 'double precision', (col) => col.notNull())
28-
.execute()
29-
3021
// Make hypertable
3122
await sql`
3223
SELECT create_hypertable('measurement','time');

0 commit comments

Comments
 (0)