Revert "remove redundant slug_id index"

This reverts commit 3e519ebcd8556fc4fd3615fb62d694d05a060f1d.
This commit is contained in:
Philipinho 2024-07-07 16:16:13 +01:00
parent 3e519ebcd8
commit 1958067110

View File

@ -46,6 +46,12 @@ export async function up(db: Kysely<any>): Promise<void> {
.using('GIN')
.column('tsv')
.execute();
await db.schema
.createIndex('pages_slug_id_idx')
.on('pages')
.column('slug_id')
.execute();
}
export async function down(db: Kysely<any>): Promise<void> {