]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix incorrect usage of sa.String() type
authorAnn Kamyshnikova <akamyshnikova@mirantis.com>
Thu, 24 Apr 2014 11:34:45 +0000 (15:34 +0400)
committerAnn Kamyshnikova <akamyshnikova@mirantis.com>
Thu, 24 Apr 2014 11:34:45 +0000 (15:34 +0400)
In downgrade of 4eca4a84f08a_remove_ml2_cisco_cred_db migartion
there is a mistake in usage SQLAlchemy String type.
Used sa.string() instead of sa.String()

Change-Id: I521dd63ca2b48e902ca2cb17c45a3fe996b060e7
Closes-bug: #1312124

neutron/db/migration/alembic_migrations/versions/4eca4a84f08a_remove_ml2_cisco_cred_db.py

index ed1e8316cf08d5ee9259e67fcb04f222937ba80f..10bc6fee825d4b4e9b06d35a6270a288ee8e1c08 100644 (file)
@@ -50,10 +50,10 @@ def downgrade(active_plugins=None, options=None):
 
     op.create_table(
         'cisco_ml2_credentials',
-        sa.Column('credential_id', sa.string(length=255), nullable=True),
-        sa.Column('tenant_id', sa.string(length=255), nullable=False),
-        sa.Column('credential_name', sa.string(length=255), nullable=False),
-        sa.Column('user_name', sa.string(length=255), nullable=True),
-        sa.Column('password', sa.string(length=255), nullable=True),
+        sa.Column('credential_id', sa.String(length=255), nullable=True),
+        sa.Column('tenant_id', sa.String(length=255), nullable=False),
+        sa.Column('credential_name', sa.String(length=255), nullable=False),
+        sa.Column('user_name', sa.String(length=255), nullable=True),
+        sa.Column('password', sa.String(length=255), nullable=True),
         sa.PrimaryKeyConstraint('tenant_id', 'credential_name')
     )