Fix dropIndex calls
This commit is contained in:
parent
19adb3ab44
commit
96b5ecc435
|
@ -9,8 +9,5 @@ export async function up(db: Kysely<any>): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function down(db: Kysely<any>): Promise<void> {
|
export async function down(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema
|
await db.schema.dropIndex('idx_events_kind_pubkey_created_at').execute();
|
||||||
.dropIndex('idx_events_kind_pubkey_created_at')
|
|
||||||
.on('events')
|
|
||||||
.execute();
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { Kysely } from '@/deps.ts';
|
import { Kysely } from '@/deps.ts';
|
||||||
|
|
||||||
export async function up(db: Kysely<any>): Promise<void> {
|
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_tag').execute();
|
||||||
await db.schema.dropIndex('idx_tags_value').on('tags').execute();
|
await db.schema.dropIndex('idx_tags_value').execute();
|
||||||
|
|
||||||
await db.schema
|
await db.schema
|
||||||
.createIndex('idx_tags_tag_value')
|
.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> {
|
export async function down(db: Kysely<any>): Promise<void> {
|
||||||
await db.schema
|
await db.schema.dropIndex('idx_tags_tag_value').execute();
|
||||||
.dropIndex('idx_tags_tag_value')
|
|
||||||
.on('tags')
|
|
||||||
.execute();
|
|
||||||
|
|
||||||
await db.schema
|
await db.schema
|
||||||
.createIndex('idx_tags_tag')
|
.createIndex('idx_tags_tag')
|
||||||
|
|
Loading…
Reference in New Issue