magnum/magnum/db/sqlalchemy/alembic
Theodoros Tsioutsias 3f80cbab06 ng-4: Adapt cluster object
This commit removes the fields node_addresses, master_addresses,
node_count and master_count from the cluster object since this info
will be stored in the nodegroups. At the same time, provides the way
to adapt existing clusters to the new schema.

story: 2005266

Change-Id: Iaf2cef3cc50b956c9b6d7bae13dbb716ae54eaf7
2019-03-29 10:31:48 +00:00
..
versions ng-4: Adapt cluster object 2019-03-29 10:31:48 +00:00
README Remove downgrade from existing migrations 2015-03-28 10:27:53 +08:00
env.py Copy Ironic's database model codebase 2014-12-02 15:04:31 -07:00
script.py.mako Remove downgrade from existing migrations 2015-03-28 10:27:53 +08: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