Tag the alembic migration revisions for Ocata

This allows the database to be upgraded with the command:
  neutron-db-manage upgrade ocata

Change-Id: I105355a64ef3deefc0dd90462ca6e8d5f7d12343
This commit is contained in:
Abhishek Raut 2017-01-11 03:56:19 -08:00 committed by Adit Sarfaty
parent fd40e31e38
commit 5aca58fc08
2 changed files with 10 additions and 0 deletions

View File

@ -28,6 +28,12 @@ from alembic import op
import sqlalchemy as sa
from sqlalchemy.engine import reflection
from neutron.db import migration
# milestone identifier, used by neutron-db-manage
neutron_milestone = [migration.OCATA]
def upgrade():
table_name = 'nsxv_internal_networks'

View File

@ -29,6 +29,10 @@ import sqlalchemy as sa
from neutron.db import migration
# milestone identifier, used by neutron-db-manage
neutron_milestone = [migration.OCATA]
def upgrade():
if migration.schema_has_table('lbaas_l7policies'):
op.create_table(