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:
parent
fd40e31e38
commit
5aca58fc08
@ -28,6 +28,12 @@ from alembic import op
|
|||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
from sqlalchemy.engine import reflection
|
from sqlalchemy.engine import reflection
|
||||||
|
|
||||||
|
from neutron.db import migration
|
||||||
|
|
||||||
|
|
||||||
|
# milestone identifier, used by neutron-db-manage
|
||||||
|
neutron_milestone = [migration.OCATA]
|
||||||
|
|
||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
table_name = 'nsxv_internal_networks'
|
table_name = 'nsxv_internal_networks'
|
||||||
|
@ -29,6 +29,10 @@ import sqlalchemy as sa
|
|||||||
from neutron.db import migration
|
from neutron.db import migration
|
||||||
|
|
||||||
|
|
||||||
|
# milestone identifier, used by neutron-db-manage
|
||||||
|
neutron_milestone = [migration.OCATA]
|
||||||
|
|
||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
if migration.schema_has_table('lbaas_l7policies'):
|
if migration.schema_has_table('lbaas_l7policies'):
|
||||||
op.create_table(
|
op.create_table(
|
||||||
|
Loading…
Reference in New Issue
Block a user