mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
11 lines
552 B
TypeScript
11 lines
552 B
TypeScript
import type { Kysely } from 'kysely';
|
|
|
|
export async function up(db: Kysely<unknown>): Promise<void> {
|
|
await db.schema.createIndex('idx_author_stats_pubkey').on('author_stats').column('pubkey').execute();
|
|
await db.schema.createIndex('idx_event_stats_event_id').on('event_stats').column('event_id').execute();
|
|
}
|
|
|
|
export async function down(db: Kysely<unknown>): Promise<void> {
|
|
await db.schema.dropIndex('idx_author_stats_pubkey').on('author_stats').execute();
|
|
await db.schema.dropIndex('idx_event_stats_event_id').on('event_stats').execute();
|
|
}
|