fix: adds optimize indexes (33) to migration runner (#330)

* fix: adds optimize indexes (33) to migration runner

* chore: add changeset for migration 033 runner registration fix

* test: update migration count assertions for 033_optimize_content_indexes
This commit is contained in:
Matt ‘TK’ Taylor
2026-04-07 11:52:55 +01:00
committed by GitHub
parent a996387de4
commit 5b3e33c26b
5 changed files with 14 additions and 7 deletions

View File

@@ -75,7 +75,7 @@ describeEachDialect("Migrations", (dialect) => {
const migrations = await ctx.db.selectFrom("_emdash_migrations").selectAll().execute();
expect(migrations).toHaveLength(31);
expect(migrations).toHaveLength(32);
expect(migrations[0]?.name).toBe("001_initial");
});
@@ -85,7 +85,7 @@ describeEachDialect("Migrations", (dialect) => {
const migrations = await ctx.db.selectFrom("_emdash_migrations").selectAll().execute();
expect(migrations).toHaveLength(31);
expect(migrations).toHaveLength(32);
});
it("reports correct migration status", async () => {

View File

@@ -57,7 +57,7 @@ describe("Database Migrations (Integration)", () => {
const migrations = await db.selectFrom("_emdash_migrations").selectAll().execute();
expect(migrations).toHaveLength(31);
expect(migrations).toHaveLength(32);
expect(migrations[0]?.name).toBe("001_initial");
expect(migrations[0]?.timestamp).toBeDefined();
expect(migrations[1]?.name).toBe("002_media_status");
@@ -98,8 +98,8 @@ describe("Database Migrations (Integration)", () => {
const migrations = await db.selectFrom("_emdash_migrations").selectAll().execute();
// Should still only have thirty-one migration records
expect(migrations).toHaveLength(31);
// Should still only have thirty-two migration records
expect(migrations).toHaveLength(32);
});
it("should report correct migration status", async () => {