{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3659","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3659/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3659/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3659/events","html_url":"https://github.com/sequelize/sequelize/issues/3659","id":73529324,"number":3659,"title":"Model.update try to update all values","user":{"login":"firatkucuk","id":370762,"avatar_url":"https://avatars.githubusercontent.com/u/370762?v=3","gravatar_id":"","url":"https://api.github.com/users/firatkucuk","html_url":"https://github.com/firatkucuk","followers_url":"https://api.github.com/users/firatkucuk/followers","following_url":"https://api.github.com/users/firatkucuk/following{/other_user}","gists_url":"https://api.github.com/users/firatkucuk/gists{/gist_id}","starred_url":"https://api.github.com/users/firatkucuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firatkucuk/subscriptions","organizations_url":"https://api.github.com/users/firatkucuk/orgs","repos_url":"https://api.github.com/users/firatkucuk/repos","events_url":"https://api.github.com/users/firatkucuk/events{/privacy}","received_events_url":"https://api.github.com/users/firatkucuk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sequelize/sequelize/labels/bug","name":"bug","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-06T06:24:08Z","updated_at":"2015-05-07T11:59:11Z","closed_at":null,"body":"on 2.1.0 release model update tries to update all fields.\r\n\r\nMy current code:\r\n\r\n```\r\n    //generate token with length of 10\r\n    var resetCode = utils.generateId(150);\r\n\r\n    var newProperties = {\r\n      'resetCode' : resetCode,\r\n      'updatedAt' : new Date()\r\n    };\r\n\r\n    return db.models.Customer\r\n      .update(newProperties, {'where': {'email': email}})\r\n      .then(function () {\r\n        return resetCode;\r\n      });\r\n```\r\n\r\nand generated SQL is:\r\n\r\n```\r\nUPDATE `CUSTOMER` SET `ID`=NULL,`EMAIL`=NULL,`PASSWORD`=NULL,`RESET_CODE`=NULL,`CREATED_AT`=NULL,`UPDATED_AT`='2015-05-06 06:14:27' WHERE `EMAIL` = 'test@example.com'\r\n```\r\n\r\non 2.0.5 release. it updates only given fields. But on 2.06 it does not."},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/99832529","html_url":"https://github.com/sequelize/sequelize/issues/3659#issuecomment-99832529","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/3659","id":99832529,"user":{"login":"mickhansen","id":699049,"avatar_url":"https://avatars.githubusercontent.com/u/699049?v=3","gravatar_id":"","url":"https://api.github.com/users/mickhansen","html_url":"https://github.com/mickhansen","followers_url":"https://api.github.com/users/mickhansen/followers","following_url":"https://api.github.com/users/mickhansen/following{/other_user}","gists_url":"https://api.github.com/users/mickhansen/gists{/gist_id}","starred_url":"https://api.github.com/users/mickhansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickhansen/subscriptions","organizations_url":"https://api.github.com/users/mickhansen/orgs","repos_url":"https://api.github.com/users/mickhansen/repos","events_url":"https://api.github.com/users/mickhansen/events{/privacy}","received_events_url":"https://api.github.com/users/mickhansen/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T11:59:11Z","updated_at":"2015-05-07T11:59:11Z","body":"Bug confirmed, working on a fix."}}