ironic/ironic/db/sqlalchemy/alembic
Jim Rollenhagen c53a649b24 Set existing ports pxe_enabled=True when adding pxe_enabled column
The `default` parameter to Column() doesn't have any effect on existing
rows, therefore when this migration runs it is set to NULL. After adding
the column, update existing ports in the database to have
pxe_enabled=True, which maintains behavior before this column was added.

Closes-Bug: #1545068
Change-Id: Ibee65fbe26d89d27925a2202795d38461ec60f1f
2016-02-12 22:29:05 +02:00
..
versions Set existing ports pxe_enabled=True when adding pxe_enabled column 2016-02-12 22:29:05 +02:00
README alembic with initial migration and tests 2014-01-27 16:06:57 +02:00
env.py db: use new EngineFacade feature of oslo.db 2015-07-16 17:01:49 +03:00
script.py.mako alembic with initial migration and tests 2014-01-27 16:06:57 +02: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

Downgrading db:
$ ironic-dbsync downgrade
$ ironic-dbsync downgrade --revision base