Tag the alembic migration revisions for Mitaka
Previously when we had one repo with one alembic branch we would create a milestone revision on that single branch. Now we have multiple repos and expand/contract branches for each repo. So now we tag the final revision on every branch when we make a milestone release. The database can be upgraded with the command: neutron-db-manage upgrade <milestone> where <milestone> is an alias for all the revisions for a milestone. Partial-Bug: #1552935 Depends-On: I0e6fc31dfa062c689936b2fe982147335ad9dce3 Change-Id: Ieb240fa0783537567f13f039e095762ab15d3e8c
This commit is contained in:
parent
992fc2bd2b
commit
97282700b7
|
@ -21,20 +21,26 @@ Create Date: 2015-09-09 20:32:54.254267
|
|||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '2cb4ee992b41'
|
||||
down_revision = '2c82e782d734'
|
||||
depends_on = ('28ee739a7e4b',)
|
||||
|
||||
from alembic import op
|
||||
from oslo_utils import uuidutils
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.sql import expression as sa_expr
|
||||
|
||||
from neutron.api.v2 import attributes as attr
|
||||
from neutron.db import migration
|
||||
|
||||
from neutron_vpnaas.services.vpn.common import constants as v_constants
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '2cb4ee992b41'
|
||||
down_revision = '2c82e782d734'
|
||||
depends_on = ('28ee739a7e4b',)
|
||||
|
||||
# milestone identifier, used by neutron-db-manage
|
||||
neutron_milestone = [migration.MITAKA]
|
||||
|
||||
|
||||
vpnservices = sa.Table(
|
||||
'vpnservices', sa.MetaData(),
|
||||
sa.Column('id', sa.String(length=36), nullable=False),
|
||||
|
|
|
@ -21,12 +21,18 @@ Create Date: 2015-09-09 20:32:54.231765
|
|||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
from neutron.db import migration
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '28ee739a7e4b'
|
||||
down_revision = '41b509d10b5e'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
# milestone identifier, used by neutron-db-manage
|
||||
neutron_milestone = [migration.MITAKA]
|
||||
|
||||
|
||||
def upgrade():
|
||||
|
|
Loading…
Reference in New Issue