fix: isolate minimax m3 backend migration

This commit is contained in:
Codex
2026-06-02 08:11:15 +08:00
parent ab40d86dde
commit 4b9dc79b67
4 changed files with 28 additions and 5 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ const selfTest: SelfTestCase = async () => {
(error) => error instanceof AgentRunError && error.failureKind === "infra-failed" && error.message.includes("DATABASE_URL is required"),
);
const postgresContract = postgresMigrationContract();
assert.equal(postgresContract.latestMigrationId, "004_v01_queue_q1");
assert.equal(postgresContract.latestMigrationId, "005_v01_minimax_m3_backend_profile");
assert.equal((postgresContract.checksums as Record<string, string>)["002_v01_backend_profiles"], "928b5c490cc4539cb64ecef34784557601b2724fa2870570f16a53576804e49c");
assert.ok(Array.isArray(postgresContract.requiredTables));
assert.ok(postgresContract.requiredTables.includes("agentrun_schema_migrations"));
assert.ok(postgresContract.requiredTables.includes("agentrun_runs"));