Skip to content

Commit

Permalink
Fix double table
Browse files Browse the repository at this point in the history
  • Loading branch information
unkhz committed Jul 25, 2024
1 parent 12b5da6 commit 30eb01e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/common-postgres/migrations/001-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ export async function up(db: Kysely<any>) {
.addColumn('shortname', 'varchar(8)', (col) => col.notNull())
.execute()

await db.schema
.createTable('measurement')
.addColumn('time', 'timestamptz', (col) => col.notNull())
.addColumn('source', 'text', (col) => col.notNull())
.addColumn('temperature', 'double precision', (col) => col.notNull())
.addColumn('humidity', 'double precision', (col) => col.notNull())
.addColumn('pressure', 'double precision', (col) => col.notNull())
.execute()

// Make hypertable
await sql`
SELECT create_hypertable('measurement','time');
Expand Down

0 comments on commit 30eb01e

Please sign in to comment.