Files
notifications-api/migrations
Leo Hemsted 0ab89116ee use server_default in alembic to ensure zero-downtimeness
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.
2017-10-30 11:59:35 +00:00
..
2017-08-16 12:50:44 +01:00

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.