Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): drop V1 projections nothing reads after the V2 upgrade #20947

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/20947/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 72 additions and 1 deletion (loading 3).

x
0 of 6 viewed, 6 left
3 additions and 1 deletionapps/server/src/persistence/Migrations/055_OrchestrationV2.test.tsModified
View file
@@ -13,7 +13,7 @@
Effect.sync(() => {
assert.deepStrictEqual(
migrationEntries.map(([id]) => id),
- Array.from({ length: 62 }, (_, index) => index + 1),
+ Array.from({ length: 63 }, (_, index) => index + 1),
);
}),
);
@@ -34,6 +34,7 @@
[60, "ThreadSnapshotWindowIndexes"],
[61, "PullRequestReviewGuides"],
[62, "ThreadFailureLookupIndex"],
+ [63, "DropUnusedV1Projections"],
]);
assert.deepStrictEqual(yield* runMigrations(), []);
​
@@ -62,6 +63,7 @@
{ migration_id: 60, name: "ThreadSnapshotWindowIndexes" },
{ migration_id: 61, name: "PullRequestReviewGuides" },
{ migration_id: 62, name: "ThreadFailureLookupIndex" },
+ { migration_id: 63, name: "DropUnusedV1Projections" },
]);
​
const tables = yield* sql<{ readonly name: string }>`
49 additions and 0 deletionsapps/server/src/persistence/Migrations/063_DropUnusedV1Projections.test.tsAdded
View file