]> review.fuel-infra Code Review - openstack-build/neutron-build.git/blob
3b2707c74b9039cd2c2cb772e536998e70e62b6e
[openstack-build/neutron-build.git] /
1 # Copyright 2015 Rackspace
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 """Add dns_name to Port
17
18 Revision ID: 34af2b5c5a59
19 Revises: 9859ac9c136
20 Create Date: 2015-08-23 00:22:47.618593
21
22 """
23
24 from alembic import op
25 import sqlalchemy as sa
26
27 from neutron.db import migration
28 from neutron.extensions import dns
29
30
31 # revision identifiers, used by Alembic.
32 revision = '34af2b5c5a59'
33 down_revision = '9859ac9c136'
34
35 # milestone identifier, used by neutron-db-manage
36 neutron_milestone = [migration.LIBERTY]
37
38
39 def upgrade():
40     op.add_column('ports',
41                   sa.Column('dns_name',
42                             sa.String(length=dns.FQDN_MAX_LEN),
43                             nullable=True))