-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Change autogenerate to be unconditional"
- Loading branch information
Showing
4 changed files
with
47 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
neutron/db/migration/alembic_migrations/versions/3b85b693a95f_remove_service_tables.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright 2014 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. | ||
# | ||
|
||
"""Drop unused servicedefinitions and servicetypes tables. | ||
These tables are created independently on plugins but only dropped if | ||
LoadBalancer plugin is used. Meaning that if LoadBalancer plugin is not set | ||
then these tables were created and never used. | ||
Revision ID: 3b85b693a95f | ||
Revises: 327ee5fde2c7 | ||
Create Date: 2014-07-22 03:30:05.837152 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '3b85b693a95f' | ||
down_revision = '327ee5fde2c7' | ||
|
||
from alembic import op | ||
|
||
|
||
def upgrade(active_plugins=None, options=None): | ||
for table in ('servicedefinitions', 'servicetypes'): | ||
op.execute("DROP TABLE IF EXISTS %s" % table) | ||
|
||
|
||
def downgrade(active_plugins=None, options=None): | ||
"""Don't create the tables | ||
These tables would be created during downgrade at correct place in | ||
migration timeline at revision 557edfc53098. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
327ee5fde2c7 | ||
3b85b693a95f |