@@ -20,9 +20,9 @@ Sequelize follows [SEMVER](http://semver.org). Supports Node v6 and above to use
New to Sequelize? Take a look at the [Tutorials and Guides](http://docs.sequelizejs.com/). You might also be interested in the [API Reference](http://docs.sequelizejs.com/identifiers).
## v5 Release
## v6 Release
You can find the upgrade guide and changelog [here](http://docs.sequelizejs.com/manual/upgrade-to-v5.html).
You can find the upgrade guide and changelog [here](http://docs.sequelizejs.com/manual/upgrade-to-v6.html).
## Table of Contents
-[Installation](#installation)
...
...
@@ -33,7 +33,7 @@ You can find the upgrade guide and changelog [here](http://docs.sequelizejs.com/
## Installation
```bash
$ npm install --save sequelize # This will install v5
$ npm install --save sequelize # This will install v6
# And one of the following:
$ npm install --save pg pg-hstore # Postgres
...
...
@@ -44,7 +44,8 @@ $ npm install --save tedious # Microsoft SQL Server
* @returns {Promise<Model[],?number>} returns an array of affected rows and affected count with `options.returning: true`, whenever supported by dialect
*/
staticincrement(fields,options){
options=options||{};
staticincrement(fields,options={}){
this._injectScope(options);
this._optionsMustContainWhere(options);
...
...
@@ -3986,13 +3983,12 @@ class Model {
*
* @returns {Promise<Model>}
*/
update(values,options){
update(values,options={}){
// Clone values so it doesn't get modified for caller scope and ignore undefined values