blob -> bytea

This commit is contained in:
Alex Gleason 2024-05-26 20:41:14 -05:00
parent b1a497b127
commit c55cd2a977
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ export async function up(db: Kysely<any>): Promise<void> {
.createTable('connections') .createTable('connections')
.addColumn('api_token', 'text', (col) => col.primaryKey().unique().notNull()) .addColumn('api_token', 'text', (col) => col.primaryKey().unique().notNull())
.addColumn('user_pubkey', 'text', (col) => col.notNull()) .addColumn('user_pubkey', 'text', (col) => col.notNull())
.addColumn('server_seckey', 'blob', (col) => col.notNull()) .addColumn('server_seckey', 'bytea', (col) => col.notNull())
.addColumn('server_pubkey', 'text', (col) => col.notNull()) .addColumn('server_pubkey', 'text', (col) => col.notNull())
.addColumn('relays', 'text', (col) => col.defaultTo('[]')) .addColumn('relays', 'text', (col) => col.defaultTo('[]'))
.addColumn('connected_at', 'timestamp', (col) => col.defaultTo(sql`CURRENT_TIMESTAMP`)) .addColumn('connected_at', 'timestamp', (col) => col.defaultTo(sql`CURRENT_TIMESTAMP`))