From 435cfb5517608332509a35c834b9b9e2a39b109f Mon Sep 17 00:00:00 2001 From: Ann Kamyshnikova Date: Tue, 12 Nov 2013 15:49:43 +0400 Subject: [PATCH] Fix sqlalchemy DateTime type usage In migration f9263d6df56_remove_dhcp_lease there is mistake in DateTime type usage for mysql, used sa.DATETIME() instead of sa.DateTime() Closes-Bug: #1250405 Change-Id: I41fcd3babc64e3307895a92f03c7417577fa7b1d --- .../versions/f9263d6df56_remove_dhcp_lease.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/db/migration/alembic_migrations/versions/f9263d6df56_remove_dhcp_lease.py b/neutron/db/migration/alembic_migrations/versions/f9263d6df56_remove_dhcp_lease.py index e6f38a9b3e..51b8d937e7 100644 --- a/neutron/db/migration/alembic_migrations/versions/f9263d6df56_remove_dhcp_lease.py +++ b/neutron/db/migration/alembic_migrations/versions/f9263d6df56_remove_dhcp_lease.py @@ -42,5 +42,5 @@ def upgrade(active_plugins=None, options=None): def downgrade(active_plugins=None, options=None): - op.add_column('ipallocations', sa.Column(u'expiration', sa.DATETIME(), + op.add_column('ipallocations', sa.Column(u'expiration', sa.DateTime(), nullable=True))