From 2f1509072574c6397f3d998775883a0c1f475387 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Fri, 9 Feb 2018 06:36:31 +0200 Subject: [PATCH] Tag the alembic migration revisions for Queens This allows the database to be upgraded with the command: neutron-db-manage upgrade queens Change-Id: Ia6ce7c636ac48468ba5ada7c31ff74f504b4fc1a --- .../queens/contract/717f7f63a219_nsxv3_lbaas_l7policy.py | 3 +++ .../versions/queens/expand/9799427fc0e1_nsx_tv_map.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/vmware_nsx/db/migration/alembic_migrations/versions/queens/contract/717f7f63a219_nsxv3_lbaas_l7policy.py b/vmware_nsx/db/migration/alembic_migrations/versions/queens/contract/717f7f63a219_nsxv3_lbaas_l7policy.py index 72cf9d4483..2e80d188f4 100644 --- a/vmware_nsx/db/migration/alembic_migrations/versions/queens/contract/717f7f63a219_nsxv3_lbaas_l7policy.py +++ b/vmware_nsx/db/migration/alembic_migrations/versions/queens/contract/717f7f63a219_nsxv3_lbaas_l7policy.py @@ -29,6 +29,9 @@ import sqlalchemy as sa from neutron.db import migration +# milestone identifier, used by neutron-db-manage +neutron_milestone = [migration.QUEENS] + def upgrade(): diff --git a/vmware_nsx/db/migration/alembic_migrations/versions/queens/expand/9799427fc0e1_nsx_tv_map.py b/vmware_nsx/db/migration/alembic_migrations/versions/queens/expand/9799427fc0e1_nsx_tv_map.py index ebe337ac67..5a21c8e23e 100644 --- a/vmware_nsx/db/migration/alembic_migrations/versions/queens/expand/9799427fc0e1_nsx_tv_map.py +++ b/vmware_nsx/db/migration/alembic_migrations/versions/queens/expand/9799427fc0e1_nsx_tv_map.py @@ -27,8 +27,12 @@ down_revision = 'ea7a72ab9643' from alembic import op import sqlalchemy as sa +from neutron.db import migration + plugin_type_enum = sa.Enum('dvs', 'nsx-v', 'nsx-t', name='nsx_plugin_type') +# milestone identifier, used by neutron-db-manage +neutron_milestone = [migration.QUEENS] def upgrade():