mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Fix defaultTo migration
This commit is contained in:
parent
f04ca2b6ff
commit
ad68946899
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import { Kysely, sql } from 'kysely';
|
|||
export async function up(db: Kysely<any>): Promise<void> {
|
||||
await db.schema
|
||||
.alterTable('nostr_events')
|
||||
.addColumn('search_ext', 'jsonb', (col) => col.notNull().defaultTo({}))
|
||||
.addColumn('search_ext', 'jsonb', (col) => col.notNull().defaultTo(sql`'{}'::jsonb`))
|
||||
.execute();
|
||||
|
||||
await db.schema
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue