mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
16 lines
419 B
TypeScript
16 lines
419 B
TypeScript
import { Kysely } from '@/deps.ts';
|
|
|
|
export async function up(db: Kysely<any>): Promise<void> {
|
|
await db.schema
|
|
.createIndex('idx_events_kind_pubkey_created_at')
|
|
.on('events')
|
|
.columns(['kind', 'pubkey', 'created_at'])
|
|
.execute();
|
|
}
|
|
|
|
export async function down(db: Kysely<any>): Promise<void> {
|
|
await db.schema
|
|
.dropIndex('idx_events_kind_pubkey_created_at')
|
|
.on('events')
|
|
.execute();
|
|
}
|