You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cea58c4
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): nightly starts on databases a preview build migrated
v0.1.2 previews recorded peer links as migrations 68-70, the ids main
later used for ShellStopRequestIndex and ThreadMessageSearch, so newer
builds refused those databases at startup. Forget that preview history
when no peer links are stored so main's migrations run.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
constlinks=yield*sql`SELECT 1 FROM peer_environment_links LIMIT 1`;
88
+
if(links.length>0){
89
+
returnyield*newMigrator.MigrationError({
90
+
kind: "BadState",
91
+
message:
92
+
"This database was migrated by a v0.1.2 preview build and still has peer environment links, which this build cannot keep. Start the preview build, unlink every linked environment, then start this build again.",
93
+
});
94
+
}
95
+
yield*sql`DROP INDEX IF EXISTS orchestration_v2_projection_turn_items_waiting_link_idx`;
96
+
yield*sql`DROP TABLE peer_environment_links`;
97
+
yield*sql`DELETE FROM effect_sql_migrations WHERE migration_id >= 68`;
98
+
yield*Effect.log("Removed empty peer links schema left by a preview build");
0 commit comments