Fix incorrect usage of sa.String() type

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
This commit is contained in:
Ann Kamyshnikova 2014-04-24 15:34:45 +04:00
parent fc312c50c3
commit 11864ba5a6

View 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')
)