]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix incorrect downgrade
authorAnn Kamyshnikova <akamyshnikova@mirantis.com>
Mon, 21 Jul 2014 12:13:14 +0000 (16:13 +0400)
committerAnn Kamyshnikova <akamyshnikova@mirantis.com>
Mon, 21 Jul 2014 12:30:23 +0000 (16:30 +0400)
In downgrade of migration b7a8863760e_rm_cisco_vlan_bindin is used
Integer type with parameter display_width. Integer should be used
without any parameters.

Closes-bug: #1346245

Change-Id: Ic444af81ed3ec25116d2171ab465ce473cba8113

neutron/db/migration/alembic_migrations/versions/b7a8863760e_rm_cisco_vlan_bindin.py

index fa1cc255eb3380a7b13a429806529405211cc6fd..9b02a725a6d5ee5fe25ada2fb17e96cc18969a91 100644 (file)
@@ -51,7 +51,7 @@ def downgrade(active_plugins=None, options=None):
 
     op.create_table(
         'cisco_vlan_bindings',
-        sa.Column('vlan_id', sa.Integer(display_width=11), nullable=False),
+        sa.Column('vlan_id', sa.Integer(), nullable=False),
         sa.Column('vlan_name', sa.String(length=255), nullable=True),
         sa.Column('network_id', sa.String(length=255), nullable=False),
         sa.PrimaryKeyConstraint('vlan_id')