From c4cd13d903c86e50c5c80fd14db7a4e164fb5f0c Mon Sep 17 00:00:00 2001 From: Henry Gessau Date: Thu, 3 Mar 2016 20:36:59 -0500 Subject: [PATCH] Tag the alembic migration revisions for Mitaka 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 now we tag the final revision on every branch when we make a milestone release. The database can be upgraded with the command: neutron-db-manage upgrade where is an alias for all the revisions for a milestone. Partial-Bug: #1552935 Change-Id: I66961aeaa2eef586eae11ee4eb08f61ebb91e54b --- .../versions/liberty/contract/130ebfdef43_initial.py | 2 +- .../62deca5010cd_add_tenant_id_index_for_l7_tables.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/neutron_lbaas/db/migration/alembic_migrations/versions/liberty/contract/130ebfdef43_initial.py b/neutron_lbaas/db/migration/alembic_migrations/versions/liberty/contract/130ebfdef43_initial.py index abbd6edc3..e9c57b892 100644 --- a/neutron_lbaas/db/migration/alembic_migrations/versions/liberty/contract/130ebfdef43_initial.py +++ b/neutron_lbaas/db/migration/alembic_migrations/versions/liberty/contract/130ebfdef43_initial.py @@ -30,7 +30,7 @@ down_revision = 'kilo' branch_labels = (cli.CONTRACT_BRANCH,) # milestone identifier, used by neutron-db-manage -neutron_milestone = [migration.LIBERTY] +neutron_milestone = [migration.LIBERTY, migration.MITAKA] def upgrade(): diff --git a/neutron_lbaas/db/migration/alembic_migrations/versions/mitaka/expand/62deca5010cd_add_tenant_id_index_for_l7_tables.py b/neutron_lbaas/db/migration/alembic_migrations/versions/mitaka/expand/62deca5010cd_add_tenant_id_index_for_l7_tables.py index f45f2fcbb..8aa098afb 100644 --- a/neutron_lbaas/db/migration/alembic_migrations/versions/mitaka/expand/62deca5010cd_add_tenant_id_index_for_l7_tables.py +++ b/neutron_lbaas/db/migration/alembic_migrations/versions/mitaka/expand/62deca5010cd_add_tenant_id_index_for_l7_tables.py @@ -22,11 +22,17 @@ Create Date: 2016-03-02 08:42:37.737281 """ +from alembic import op + +from neutron.db import migration + + # revision identifiers, used by Alembic. revision = '62deca5010cd' down_revision = '3543deab1547' -from alembic import op +# milestone identifier, used by neutron-db-manage +neutron_milestone = [migration.MITAKA] def upgrade():