From 6fbf2d10319394e49c18de0027f2bfa29e364711 Mon Sep 17 00:00:00 2001 From: Abhishek Raut Date: Thu, 8 Sep 2016 22:29:10 -0700 Subject: [PATCH] Tag the alembic migration revisions for Newton This allows the database to be upgraded with the command: neutron-db-manage upgrade newton Change-Id: I7a6f329a35b959eb699ecb9ff0b18e00ce50b8dd --- .../contract/d49ac91b560e_nsxv_lbaasv2_shared_pools.py | 10 ++++++++-- .../newton/expand/7b5ec3caa9a4_nsxv_fix_az_default.py | 8 +++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/vmware_nsx/db/migration/alembic_migrations/versions/newton/contract/d49ac91b560e_nsxv_lbaasv2_shared_pools.py b/vmware_nsx/db/migration/alembic_migrations/versions/newton/contract/d49ac91b560e_nsxv_lbaasv2_shared_pools.py index 3a6b6c1815..47ac1e2ed8 100644 --- a/vmware_nsx/db/migration/alembic_migrations/versions/newton/contract/d49ac91b560e_nsxv_lbaasv2_shared_pools.py +++ b/vmware_nsx/db/migration/alembic_migrations/versions/newton/contract/d49ac91b560e_nsxv_lbaasv2_shared_pools.py @@ -20,12 +20,18 @@ Create Date: 2016-07-21 05:03:35.369938 """ +from alembic import op +from sqlalchemy.engine import reflection + +from neutron.db import migration + + # revision identifiers, used by Alembic. revision = 'd49ac91b560e' down_revision = 'dbe29d208ac6' -from alembic import op -from sqlalchemy.engine import reflection +# milestone identifier, used by neutron-db-manage +neutron_milestone = [migration.NEWTON] def upgrade(): diff --git a/vmware_nsx/db/migration/alembic_migrations/versions/newton/expand/7b5ec3caa9a4_nsxv_fix_az_default.py b/vmware_nsx/db/migration/alembic_migrations/versions/newton/expand/7b5ec3caa9a4_nsxv_fix_az_default.py index 86403b0f4f..23c17314e3 100644 --- a/vmware_nsx/db/migration/alembic_migrations/versions/newton/expand/7b5ec3caa9a4_nsxv_fix_az_default.py +++ b/vmware_nsx/db/migration/alembic_migrations/versions/newton/expand/7b5ec3caa9a4_nsxv_fix_az_default.py @@ -20,11 +20,17 @@ Create Date: 2016-09-07 11:38:35.369938 """ +from alembic import op + +from neutron.db import migration + + # revision identifiers, used by Alembic. revision = '7b5ec3caa9a4' down_revision = '6e6da8296c0e' -from alembic import op +# milestone identifier, used by neutron-db-manage +neutron_milestone = [migration.NEWTON] def upgrade():