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
This commit is contained in:
Aleksey Ripinen 2015-01-20 14:33:06 +03:00
parent 2315f0ba9c
commit bf37472659
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

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