Adopt the migration chaining and branch names from neutron
Neutron recently renamed branches [1] and switched to down_revision to link liberty initial scripts to kilo. Let's do the same for vpnaas. [1]: Id524d7673ad248c831f6dbb3a6f2f3c50094acae [2]: If551633ab26e0eac549c1e13cfa0771383a1a060 Change-Id: Iab29a785fca1ce86148f77f5973b9d7debce44a8 Partially-Implements: blueprint online-schema-migrations
This commit is contained in:
parent
fe5540d772
commit
988280cb8b
@ -1,3 +1,2 @@
|
||||
24f28869838b
|
||||
333dfd6afaa2
|
||||
kilo
|
||||
|
@ -15,17 +15,11 @@
|
||||
"""fix identifier map fk
|
||||
|
||||
Revision ID: 56893333aa52
|
||||
Revises: None
|
||||
Revises: kilo
|
||||
Create Date: 2015-06-11 12:09:01.263253
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '56893333aa52'
|
||||
down_revision = None
|
||||
branch_labels = ('liberty_contract',)
|
||||
depends_on = ('kilo',)
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.sql import column
|
||||
@ -33,6 +27,14 @@ from sqlalchemy.sql import expression as expr
|
||||
from sqlalchemy.sql import func
|
||||
from sqlalchemy.sql import table
|
||||
|
||||
from neutron.db.migration import cli
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '56893333aa52'
|
||||
down_revision = 'kilo'
|
||||
branch_labels = (cli.CONTRACT_BRANCH,)
|
||||
|
||||
|
||||
def upgrade():
|
||||
# re-size existing data if necessary
|
||||
|
@ -14,16 +14,18 @@
|
||||
"""Initial no-op Liberty expand rule.
|
||||
|
||||
Revision ID: 30018084ed99
|
||||
Revises: None
|
||||
Revises: kilo
|
||||
Create Date: 2015-07-16 00:00:00.000000
|
||||
|
||||
"""
|
||||
|
||||
from neutron.db.migration import cli
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '30018084ed99'
|
||||
down_revision = None
|
||||
depends_on = ('kilo',)
|
||||
branch_labels = ('liberty_expand',)
|
||||
down_revision = 'kilo'
|
||||
branch_labels = (cli.EXPAND_BRANCH,)
|
||||
|
||||
|
||||
def upgrade():
|
||||
|
Loading…
Reference in New Issue
Block a user