murano/murano/db/migration/alembic_migrations
zhurong 20af772ee7 Fix pep8 E402
Change-Id: Ie8eda174a6da50a222e4070a18a421eff28b6119
2019-01-09 13:23:29 +08:00
..
versions Fix pep8 E402 2019-01-09 13:23:29 +08:00
README Added DB migrations on Alembic 2014-06-20 18:01:34 +04:00
env.py Use oslo.log library instead of system logging module 2015-08-05 13:21:09 +03:00
script.py.mako Added DB migrations on Alembic 2014-06-20 18:01:34 +04:00

README

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

To create alembic migrations use:
$ murano-db-manage revision --message --autogenerate

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

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

Downgrading db:
$ murano-db-manage downgrade
$ murano-db-manage downgrade --revision base