magnum/magnum/db/sqlalchemy/alembic
OTSUKA, Yuanying 57249650cc Add status attribute to bay
When a Bay is created, we use Heat to bring up resources to use for the Bay.
We would like to see the related status in the Bay resource that tracks what's
happening. We use the new status attribute to show what is happening with Heat
behind the scenes.

Partially-Implements: blueprint magnum-bay-status

Change-Id: I7b841f2afbe575b039ebbde0e19d8fc464246608
2015-02-12 12:20:08 +09:00
..
versions Add status attribute to bay 2015-02-12 12:20:08 +09:00
README Make db-manage instructions same as usage 2015-01-26 08:55:40 +08:00
env.py Copy Ironic's database model codebase 2014-12-02 15:04:31 -07:00
script.py.mako Copy Ironic's database model codebase 2014-12-02 15:04:31 -07: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

Downgrading db:
$ magnum-db-manage downgrade
$ magnum-db-manage downgrade base