Index nostr_tags.name
This commit is contained in:
parent
7186f49316
commit
91fe7acbd2
|
@ -0,0 +1,14 @@
|
||||||
|
import { Kysely } from 'kysely';
|
||||||
|
|
||||||
|
export async function up(db: Kysely<any>): Promise<void> {
|
||||||
|
await db.schema
|
||||||
|
.createIndex('idx_tags_name')
|
||||||
|
.on('nostr_tags')
|
||||||
|
.column('name')
|
||||||
|
.ifNotExists()
|
||||||
|
.execute();
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function down(db: Kysely<any>): Promise<void> {
|
||||||
|
await db.schema.dropIndex('idx_tags_name').ifExists().execute();
|
||||||
|
}
|
Loading…
Reference in New Issue