mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix(migration 042): use .ifExists()
This commit is contained in:
parent
f879315d34
commit
a7bb975221
1 changed files with 2 additions and 2 deletions
|
|
@ -30,11 +30,11 @@ export async function down(db: Kysely<any>): Promise<void> {
|
|||
|
||||
await db.schema
|
||||
.dropIndex('nostr_events_mime_type_prefix_idx')
|
||||
.on('nostr_events')
|
||||
.ifExists()
|
||||
.execute();
|
||||
|
||||
await db.schema
|
||||
.dropIndex('nostr_events_mime_type_hash_idx')
|
||||
.on('nostr_events')
|
||||
.ifExists()
|
||||
.execute();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue