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> {
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema
|
await db.schema
|
||||||
.alterTable('nostr_events')
|
.alterTable('nostr_events')
|
||||||
.addColumn('search_ext', 'jsonb', (col) => col.notNull().defaultTo({}))
|
.addColumn('search_ext', 'jsonb', (col) => col.notNull().defaultTo(sql`'{}'::jsonb`))
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
await db.schema
|
await db.schema
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue