diff --git a/src/db/migrations/023_add_connections.ts b/src/db/migrations/023_add_connections.ts index 6568c50..e734916 100644 --- a/src/db/migrations/023_add_connections.ts +++ b/src/db/migrations/023_add_connections.ts @@ -5,7 +5,7 @@ export async function up(db: Kysely): Promise { .createTable('connections') .addColumn('api_token', 'text', (col) => col.primaryKey().unique().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('relays', 'text', (col) => col.defaultTo('[]')) .addColumn('connected_at', 'timestamp', (col) => col.defaultTo(sql`CURRENT_TIMESTAMP`))