ironic/ironic/db/sqlalchemy/alembic
Mark Goddard bbff319f02 Node traits: Add DB API & model
Adds a NodeTrait model to the DB and DBAPI methods for the following:

* Set/unset node traits
* Get node traits
* Add/remove a single trait
* Check for existence of a node trait

All node traits are deleted when their owner node is deleted. Traits
cannot be specified on node creation currently.

Change-Id: I8b375a33dcb94d2cc73eaa93a5cc5aed86c27178
Partial-Bug: #1722194
2018-01-11 15:20:43 +00:00
..
versions Node traits: Add DB API & model 2018-01-11 15:20:43 +00:00
README Remove description of 'downgrade' for ironic-dbsync 2016-04-10 14:12:14 +09:00
env.py Remove usage of some of the deprecated methods 2017-07-31 10:14:08 +00:00
script.py.mako Remove description of 'downgrade' for ironic-dbsync 2016-04-10 14:12:14 +09:00

README

Please see https://alembic.readthedocs.org/en/latest/index.html for general documentation

To create alembic migrations use:
$ ironic-dbsync revision --message --autogenerate

Stamp db with most recent migration version, without actually running migrations
$ ironic-dbsync stamp --revision head

Upgrade can be performed by:
$ ironic-dbsync - for backward compatibility
$ ironic-dbsync upgrade
# ironic-dbsync upgrade --revision head