mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
blob -> bytea
This commit is contained in:
parent
b1a497b127
commit
c55cd2a977
1 changed files with 1 additions and 1 deletions
|
|
@ -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`))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue