This commit is contained in:
legop3
2026-09-28 12:52:20 -04:00
parent bdc3eb640d
commit 923c04736b
2 changed files with 24 additions and 2 deletions
+12
View File
@@ -72,6 +72,18 @@ const migrations = [
});
},
},
{
version: 3,
run(db) {
// Migrate historical revisions too, so rolling back settings cannot
// restore the removed training-visit limit and break startup again.
db.prepare(`
UPDATE configuration_revisions
SET config_json = json_remove(config_json, '$.roverLearning.training.roundsPerSession')
WHERE json_type(config_json, '$.roverLearning.training.roundsPerSession') IS NOT NULL
`).run();
},
},
];
function applySchemaMigrations(db) {