magnum/magnum/db/sqlalchemy/alembic
Feilong Wang f5cf6b958c Fix database migrations
The pattern of adding a column and then reading a table with it
no longer works in SQLAlchemy 1.3.20. This has been reported
upstream [1].

[1] https://github.com/sqlalchemy/sqlalchemy/issues/5669

Change-Id: I5fd1deeef9cf70794bc61c101e1d7d4379d4b96b
2020-11-05 14:32:03 +13:00
..
versions Fix database migrations 2020-11-05 14:32:03 +13:00
README Remove downgrade from existing migrations 2015-03-28 10:27:53 +08:00
env.py Copy Ironic's database model codebase 2014-12-02 15:04:31 -07:00
script.py.mako Remove downgrade from existing migrations 2015-03-28 10:27:53 +08:00

README

Please see https://alembic.readthedocs.org/en/latest/index.html for general documentation

To create alembic migrations use:
$ magnum-db-manage revision --message "description of revision" --autogenerate

Stamp db with most recent migration version, without actually running migrations
$ magnum-db-manage stamp head

Upgrade can be performed by:
$ magnum-db-manage upgrade
$ magnum-db-manage upgrade head