]> review.fuel-infra Code Review - openstack-build/neutron-build.git/blob
7a91b79b31e798543ff768e4243f35a77f2fccff
[openstack-build/neutron-build.git] /
1 # Copyright 2015 Cisco Systems, Inc.
2 #
3 #    Licensed under the Apache License, Version 2.0 (the "License"); you may
4 #    not use this file except in compliance with the License. You may obtain
5 #    a copy of the License at
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #    Unless required by applicable law or agreed to in writing, software
10 #    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 #    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 #    License for the specific language governing permissions and limitations
13 #    under the License.
14 #
15
16 """Drop cisco monolithic tables
17
18 Revision ID: 4af11ca47297
19 Revises: 11926bcfe72d
20 Create Date: 2015-08-13 08:01:19.709839
21
22 """
23
24 from alembic import op
25
26 from neutron.db import migration
27
28
29 # revision identifiers, used by Alembic.
30 revision = '4af11ca47297'
31 down_revision = '11926bcfe72d'
32
33 # milestone identifier, used by neutron-db-manage
34 neutron_milestone = [migration.LIBERTY]
35
36
37 def upgrade():
38     op.drop_table('cisco_n1kv_port_bindings')
39     op.drop_table('cisco_n1kv_network_bindings')
40     op.drop_table('cisco_n1kv_multi_segments')
41     op.drop_table('cisco_provider_networks')
42     op.drop_table('cisco_n1kv_trunk_segments')
43     op.drop_table('cisco_n1kv_vmnetworks')
44     op.drop_table('cisco_n1kv_profile_bindings')
45     op.drop_table('cisco_qos_policies')
46     op.drop_table('cisco_credentials')
47     op.drop_table('cisco_n1kv_vlan_allocations')
48     op.drop_table('cisco_n1kv_vxlan_allocations')
49     op.drop_table('cisco_network_profiles')
50     op.drop_table('cisco_policy_profiles')