From d14fbc5b73b6cc358209b7d071dfe0e144c06132 Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Mon, 27 Aug 2012 12:03:24 -0400 Subject: Fix column variable typo attach_datetime is not available during downgrade. It's a copy/paste bug from the upgrade function. Partially fix bug 1037183 Change-Id: I97e2cf98a180a6c80e59545a9cda9852fa6ac563 --- .../sqlalchemy/migrate_repo/versions/098_update_volume_attach_time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/db/sqlalchemy/migrate_repo/versions/098_update_volume_attach_time.py b/nova/db/sqlalchemy/migrate_repo/versions/098_update_volume_attach_time.py index 46f681100..5a239030d 100644 --- a/nova/db/sqlalchemy/migrate_repo/versions/098_update_volume_attach_time.py +++ b/nova/db/sqlalchemy/migrate_repo/versions/098_update_volume_attach_time.py @@ -64,7 +64,7 @@ def downgrade(migrate_engine): where(volumes.c.id == v['id']).\ values(attach_string=attach_time).execute() except Exception: - attach_datetime.drop() + attach_string.drop() raise old_attachtime.alter(name='attach_time_old') -- cgit