magnum/magnum/db/sqlalchemy/alembic
Daneyon Hansen e01881726b Adds labels support to baymodels
Adds labels to the following:
  1. api baymodel attribute
  2. conductor template definitions and entrypoints
  3. a new column to the baymodel db
  4. objects. Note: Updates baymodel object version
  5. Tests

Partially-Implements: blueprint extend-api-network-attributes
Partially-Implements: blueprint extend-baymodel-net-attributes
Partially-Implements: blueprint conductor-template-net-update

Change-Id: I49f9c7df28f806cdedb3a382b1cb41bc48ff4e90
2015-09-17 16:35:41 +00:00
..
versions Adds labels support to baymodels 2015-09-17 16:35:41 +00: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