migrate#

Functions#

run(file, up, down[, direction])

Run a migration

Module Contents#

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”