From c55cd2a97743c48e68c56eeea631a49579f6d30c Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 26 May 2024 20:41:14 -0500 Subject: [PATCH] blob -> bytea --- src/db/migrations/023_add_connections.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`))