fix(migration 042): use .ifExists()

This commit is contained in:
P. Reis 2025-01-22 20:30:39 -03:00
parent f879315d34
commit a7bb975221

View file

@ -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();
}