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
Apply DB repair migration via the serverpod CLI command #3120
Today DB repair migrations are applied using the server runtime. But DB migrations, especially repair migrations, are often better to run as a deployment step that is handled separately from actual server start.
Proposal
Refactor the apply repair migrations logic in Serverpod server for reusability from the serverpod command, and add support for running it there.
(Issue #3118 is not strictly a prerequisite but would make using this command easier.)
Use Case
As a user, I'd like to be able to run it as an operation that stands alone from the server, via the serverpod CLI command.
Alternatives
An alternative could be to add a distinct subcommand to Serverpod server that effectively corresponds to the command line:
dart run bin/main.dart --role maintenance --apply-repair-migration
Activity