Fix dropIndex calls

This commit is contained in:
Alex Gleason 2024-03-02 19:23:28 -06:00
parent 19adb3ab44
commit 96b5ecc435
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 4 additions and 10 deletions

View File

@ -9,8 +9,5 @@ export async function up(db: Kysely<any>): Promise<void> {
}
export async function down(db: Kysely<any>): Promise<void> {
await db.schema
.dropIndex('idx_events_kind_pubkey_created_at')
.on('events')
.execute();
await db.schema.dropIndex('idx_events_kind_pubkey_created_at').execute();
}

View File

@ -1,8 +1,8 @@
import { Kysely } from '@/deps.ts';
export async function up(db: Kysely<any>): Promise<void> {
await db.schema.dropIndex('idx_tags_tag').on('tags').execute();
await db.schema.dropIndex('idx_tags_value').on('tags').execute();
await db.schema.dropIndex('idx_tags_tag').execute();
await db.schema.dropIndex('idx_tags_value').execute();
await db.schema
.createIndex('idx_tags_tag_value')
@ -12,10 +12,7 @@ export async function up(db: Kysely<any>): Promise<void> {
}
export async function down(db: Kysely<any>): Promise<void> {
await db.schema
.dropIndex('idx_tags_tag_value')
.on('tags')
.execute();
await db.schema.dropIndex('idx_tags_tag_value').execute();
await db.schema
.createIndex('idx_tags_tag')