magnum/magnum/db/sqlalchemy/alembic
OTSUKA, Yuanying 62c75e5883 Add fixed_subnet field to baymodel
Ironic template needs to specify fixed subnet name/ID.
And also user sometimes want to build his cluster on
his network which he built.
This patch adds fixed_subnet field to baymodel to specify
fixed subnet which bay will build on.

Change-Id: Ia21ad6e3e1472a0d078d08369ef62601034fcc17
Partial-Implements: blueprint magnum-baremetal-full-support
2016-06-30 15:16:45 +09:00
..
versions Add fixed_subnet field to baymodel 2016-06-30 15:16:45 +09:00
env.py Copy Ironic's database model codebase 2014-12-02 15:04:31 -07:00
README Remove downgrade from existing migrations 2015-03-28 10:27:53 +08:00
script.py.mako Remove downgrade from existing migrations 2015-03-28 10:27:53 +08:00

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