
ml2 plugin is a havana feature. Currently securitygroups table are created in chain of migration after havana release. It causes db migration failure when migrating from havana to current head because securitygroups table is attempted to be created although it was already created by create_all(). Closes-bug: #1271231 Change-Id: If450bd95de7a5fdfdb2219cfbf7eb0c1323044bb
43 lines
1.2 KiB
Python
43 lines
1.2 KiB
Python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
|
#
|
|
# Copyright 2013 OpenStack Foundation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
|
|
"""havana
|
|
|
|
Revision ID: havana
|
|
Revises: 49f5e553f61f
|
|
Create Date: 2013-10-02 00:00:00.000000
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'havana'
|
|
down_revision = '49f5e553f61f'
|
|
|
|
# Change to ['*'] if this migration applies to all plugins
|
|
|
|
migration_for_plugins = ['*']
|
|
|
|
|
|
def upgrade(active_plugins=None, options=None):
|
|
"""A no-op migration for marking the Havana release."""
|
|
pass
|
|
|
|
|
|
def downgrade(active_plugins=None, options=None):
|
|
"""A no-op migration for marking the Havana release."""
|
|
pass
|