]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Tag the alembic migration revisions for Liberty
authorHenry Gessau <gessau@cisco.com>
Sun, 27 Sep 2015 19:36:59 +0000 (15:36 -0400)
committerArmando Migliaccio <armamig@gmail.com>
Fri, 2 Oct 2015 16:27:39 +0000 (16:27 +0000)
commitf3bb778dcb213d81aa62e504afb10b3bac614bb4
treea9913a04c42804c9dbbd8adc622afc465c1aac50
parent677687a3aad20e61f47b3ecbc9b0f4686e817653
Tag the alembic migration revisions for Liberty

Previously when we had one repo with one alembic branch we would
create a milestone revision on that single branch. Now we have
multiple repos and expand/contract branches for each repo.

So from now on we tag the final revision on every branch when we make
a milestone release. Update the cli to support the command:
  neutron-db-manage upgrade <milestone>
where <milestone> becomes an alias for all the revisions for a
milestone.

Closes-Bug: #1499033

Change-Id: I38623986dd574bec01fe147f9c6a747f3f512bb7
(cherry picked from commit 52236764a3a7c23ec24a86ccb84bc6737e2a4791)
Conflicts:
        neutron/db/migration/cli.py
neutron/tests/unit/db/test_migration.py
neutron/db/migration/__init__.py
neutron/db/migration/alembic_migrations/versions/liberty/contract/4af11ca47297_drop_cisco_monolithic_tables.py
neutron/db/migration/alembic_migrations/versions/liberty/expand/34af2b5c5a59_add_dns_name_to_port.py
neutron/db/migration/cli.py
neutron/tests/unit/db/test_migration.py