diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-rally/sqlalchemy-db-missing-name-for-ENUM.patch')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-rally/sqlalchemy-db-missing-name-for-ENUM.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-rally/sqlalchemy-db-missing-name-for-ENUM.patch b/meta-openstack/recipes-devtools/python/python-rally/sqlalchemy-db-missing-name-for-ENUM.patch new file mode 100644 index 0000000..afb425c --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-rally/sqlalchemy-db-missing-name-for-ENUM.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | sqlalchemy-db: missing name for ENUM | ||
| 2 | |||
| 3 | Command "rally-manage db recreate" gives the following error: | ||
| 4 | |||
| 5 | TRACE rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/dialects/postgresql/base.py", line 898, in format_type | ||
| 6 | TRACE rally raise exc.CompileError("Postgresql ENUM type requires a name.") | ||
| 7 | TRACE rally CompileError: Postgresql ENUM type requires a name. | ||
| 8 | |||
| 9 | Signed-off-by: Vu Tran <vu.tran@windriver.com> | ||
| 10 | |||
| 11 | diff --git a/rally/db/sqlalchemy/models.py b/rally/db/sqlalchemy/models.py | ||
| 12 | index c68e345..5b2dbc0 100644 | ||
| 13 | --- a/rally/db/sqlalchemy/models.py | ||
| 14 | +++ b/rally/db/sqlalchemy/models.py | ||
| 15 | @@ -85,8 +85,8 @@ class Deployment(BASE, RallyBase): | ||
| 16 | ) | ||
| 17 | |||
| 18 | status = sa.Column( | ||
| 19 | - sa.Enum(*consts.DeployStatus), | ||
| 20 | - name='enum_deployments_status', | ||
| 21 | + sa.Enum(*consts.DeployStatus, | ||
| 22 | + name='enum_deployments_status'), | ||
| 23 | default=consts.DeployStatus.DEPLOY_INIT, | ||
| 24 | nullable=False, | ||
| 25 | ) | ||
