mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 00:41:35 -05:00
we can back-fill data, however, between alembic running and the api updating to the new code, it'll still try and create new users without adding the auth_type, because that won't be referenced in the model yet. Instead of using a python-level default, a postgres-level server_default will make postgres set every row to sms_auth if it's not defined in the application.
Generic single-database configuration. python application.py db migrate to generate migration script. python application.py db upgrade to upgrade db with script. python application.py db downgrade to rollback db changes. python application.py db current to show current script.