]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix migration
authorAnn Kamyshnikova <akamyshnikova@mirantis.com>
Fri, 11 Oct 2013 08:05:59 +0000 (12:05 +0400)
committerMark McClain <mark.mcclain@dreamhost.com>
Fri, 11 Oct 2013 21:24:34 +0000 (17:24 -0400)
In migration 338d7508968c_vpnaas_peer_address_ was mistake in
usage alter_column's parameter type_.

Closes-Bug: #1238561

Change-Id: I6e0eb8260cf5e8d8f557b174c7985e2f7ca1c912
(cherry picked from commit a272a2838313b56edc1463f6d81a01414b37a78f)

neutron/db/migration/alembic_migrations/versions/338d7508968c_vpnaas_peer_address_.py

index 2b57cdbeab50086f736eb8a01222b61f01535f31..56064be3ab242763126fbcd4ae6a736a3f3d32fc 100644 (file)
@@ -44,7 +44,7 @@ def upgrade(active_plugins=None, options=None):
         return
 
     op.alter_column('ipsec_site_connections', 'peer_address',
-                    _type=sa.String(255), existing_type=sa.String(64))
+                    type_=sa.String(255), existing_type=sa.String(64))
 
 
 def downgrade(active_plugins=None, options=None):
@@ -52,4 +52,4 @@ def downgrade(active_plugins=None, options=None):
         return
 
     op.alter_column('ipsec_site_connections', 'peer_address',
-                    _type=sa.String(64), existing_type=sa.String(255))
+                    type_=sa.String(64), existing_type=sa.String(255))