autowisp.database.migrate_cli module

Class Inheritance Diagram

Inheritance diagram of ArgumentParser, DefaultsFormatter

Command line entry point for migrating a project database.

Opening a project with an out-of-date schema fails rather than silently repairing itself, because every pipeline worker opens the project and concurrent DDL from dozens of processes is not survivable. This is the single-process command that does the repair. The browser interface migrates on project selection and a pipeline run migrates in its main process, so this is mostly for non-BUI use and for scripting.

autowisp.database.migrate_cli.main(config=None)[source]

Migrate the project database, reporting what changed.

autowisp.database.migrate_cli.parse_command_line(*args)[source]

Return the parsed command line arguments.