Closed oliverzy closed 10 years ago
Hi,
I found it is impossible to build the following query: update schema_version set version_rank = version_rank + 1 where version_rank >= 198
schema_version
version_rank
the version_rank column is int(11) type (mysql).
And it looks like update cannot use raw expression as well
http://knexjs.org/#Builder-increment
knex('tableName').where('version_rank', '>=', 198).increment('version_rank')
Hi,
I found it is impossible to build the following query: update
schema_version
setversion_rank
=version_rank
+ 1 whereversion_rank
>= 198the version_rank column is int(11) type (mysql).
And it looks like update cannot use raw expression as well