deb-murano/murano/db/migration/alembic_migrations
Jesus Perez 9941585945 Fix migrations to maintain compatibility with sqlite
The current command used for alter a column (drop or alter) missing
the compatibility with sqllite. Solution, pass by using batch alembic.
Read http://alembic.readthedocs.org/en/latest/batch.html for more info.

Change-Id: I32c5cecaad111f2bde559de74ecefa339739b994
2016-01-20 08:33:45 +01:00
..
versions Fix migrations to maintain compatibility with sqlite 2016-01-20 08:33:45 +01:00
env.py Use oslo.log library instead of system logging module 2015-08-05 13:21:09 +03:00
README Added DB migrations on Alembic 2014-06-20 18:01:34 +04:00
script.py.mako Added DB migrations on Alembic 2014-06-20 18:01:34 +04:00

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