app.model.lib.migrate#
Functions#
|
Run a migration. |
Module Contents#
- app.model.lib.migrate.run(file, up, down, direction=None)[source]#
Run a migration.
Inputs:
file: The filename of the migration, will be stored in the database after running
up: The function to execute to apply the migration
down: The function that reverts the migration
direction: “up” or “down”, taken from command-line arguments if not provided, defaults to “up”