]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Dropped release name from migration branch labels
authorIhar Hrachyshka <ihrachys@redhat.com>
Thu, 20 Aug 2015 11:01:46 +0000 (13:01 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Thu, 20 Aug 2015 11:40:02 +0000 (13:40 +0200)
commitaf7fb6c9da0b7e4ae75e02c138f1542b6db02301
treec6e836a10fe966513768208e14c5230171b62f47
parent905064eb61479fcd8fdf0e600aaea38ba505d3bb
Dropped release name from migration branch labels

Since the plan is to attach first Mitaka scripts to Liberty branches
with down_revision, and since labels are inherited from all other
revisions in the chain, using release names in branch labels would mean
that the following commands would be valid:

neutron-db-manage upgrade liberty_expand@<some_revision_from_mitaka>
neutron-db-manage upgrade mitaka_expand@<some_revision_from_liberty>

which may be confusing to users.

So let's drop release names from branch labels and use expand@head and
contract@head to access latest migrations.

Change-Id: Id524d7673ad248c831f6dbb3a6f2f3c50094acae
Partially-Implements: blueprint online-schema-migrations
doc/source/devref/alembic_migrations.rst
neutron/db/migration/alembic_migrations/versions/liberty/contract/30018084ec99_initial.py
neutron/db/migration/alembic_migrations/versions/liberty/expand/354db87e3225_nsxv_vdr_metadata.py
neutron/db/migration/cli.py
neutron/tests/unit/db/test_migration.py