Skip to content

Commit

Permalink
Add index for not_downloaded (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brainicism authored Feb 3, 2024
1 parent 32ed9a3 commit 0147681
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/migrations/2024-02-03T23:15:53.743Z-not-downloaded-index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Kysely } from "kysely";
import { KmqDB } from "../typings/kmq_db";

export async function up(db: Kysely<KmqDB>): Promise<void> {
await db.schema
.alterTable("not_downloaded")
.addIndex("not_downloaded_vlink_index")
.column("vlink")
.execute();
}

export async function down(db: Kysely<KmqDB>): Promise<void> {
await db.schema
.alterTable("not_downloaded")
.dropIndex("not_downloaded_vlink_index")
.execute();
}

0 comments on commit 0147681

Please sign in to comment.