summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYun Mao <yunmao@gmail.com>2012-08-27 12:03:24 -0400
committerYun Mao <yunmao@gmail.com>2012-08-27 12:03:24 -0400
commitd14fbc5b73b6cc358209b7d071dfe0e144c06132 (patch)
tree109a6a9149337ae0fe519e65ace31bc7983b50e4
parent5e012d8d45935b68a5ce5d50ed043d4bb8066cf8 (diff)
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
-rw-r--r--nova/db/sqlalchemy/migrate_repo/versions/098_update_volume_attach_time.py2
1 files changed, 1 insertions, 1 deletions
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')