From bf374726599bbc8ed1d07a518061a784041b6462 Mon Sep 17 00:00:00 2001 From: Aleksey Ripinen Date: Tue, 20 Jan 2015 14:33:06 +0300 Subject: [PATCH] New versions of SQLAlchemy in requirements Version of SQLAlchemy changed to 0.9. Version of sqlalchemy-migrate changed to 0.9. Function cast in models was fixed. Change-Id: I4f4c5631d792ff921a3f1a52b7faa5bb4aa462db --- requirements.txt | 4 ++-- storyboard/db/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 43b7794a..fa84158b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,9 +13,9 @@ python-openid PyYAML>=3.1.0 requests>=1.1 six>=1.7.0 -SQLAlchemy>=0.8,<=0.8.99 +SQLAlchemy>=0.9.7,<=0.9.99 WSME>=0.6 -sqlalchemy-migrate>=0.8.2,!=0.8.4 +sqlalchemy-migrate>=0.9.1,!=0.9.2 SQLAlchemy-FullText-Search eventlet>=0.13.0 stevedore>=1.0.0 diff --git a/storyboard/db/models.py b/storyboard/db/models.py index 16396c84..b588f6b0 100644 --- a/storyboard/db/models.py +++ b/storyboard/db/models.py @@ -340,7 +340,7 @@ def _story_build_summary_query(): ).label('status') ) for task_status in Task.TASK_STATUSES: - select_items.append(func.cast( + select_items.append(expr.cast( func.sum(Task.status == task_status), Integer ).label(task_status)) select_items.append(expr.null().label('task_statuses'))