1 # Copyright 2015 Rackspace
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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
16 """Add dns_name to Port
18 Revision ID: 34af2b5c5a59
20 Create Date: 2015-08-23 00:22:47.618593
24 from alembic import op
25 import sqlalchemy as sa
27 from neutron.db import migration
28 from neutron.extensions import dns
31 # revision identifiers, used by Alembic.
32 revision = '34af2b5c5a59'
33 down_revision = '9859ac9c136'
35 # milestone identifier, used by neutron-db-manage
36 neutron_milestone = [migration.LIBERTY]
40 op.add_column('ports',
42 sa.String(length=dns.FQDN_MAX_LEN),