mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-16 02:02:13 -05:00
This renames the latest migration file to match the Revision ID in the file. When these names are different, our deployment pipeline tries to run migrations on the notify-api-db-migration app and runs the functional tests twice.
See https://flask-alembic.readthedocs.io/en/stable/.
You can run flask db for a list of the available commands.
Note that we manually rename the auto-generated files so the prefix is a sequential number instead of a SHA. This means the files are listed in order, so it's easier to navigate the migration history.