- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.3k
Closed
Closed
Copy link
Labels
status: understoodFor issues. Applied when the issue is understood / reproducible.For issues. Applied when the issue is understood / reproducible.type: bugDEPRECATED: replace with the "bug" issue typeDEPRECATED: replace with the "bug" issue type
Description
What are you doing?
person = Person.create({ name: 'Original Name'})
await Person.update({ updatedAt: new Date('02-26-1991')}, {where: { id: person.id }, silent: true})
// [ 0 ]
await person.reload()
await person.updatedAt
// 2019-04-12T20:13:52.923Z
await Person.update({ updatedAt: new Date('02-26-1991'), name: 'A New Name'}, {where: { id: person.id }, silent: true})
Executing (default): UPDATE "Person" SET "updatedAt"=$1,"name"=$2 WHERE "id" = $3
// [ 1 ]
await person.reload()
person.updatedAt
// 1991-02-26T05:00:00.000ZTo Reproduce
Steps to reproduce the behavior:
- Create a model Personand an instanceperson
- Use Person.updateto update only the updatedAt field on person
- Reload personto see that updatedAt has not been updated
What do you expect to happen?
I expected updatedAt to be updated,
What is actually happening?
updatedAt was not updated
Environment
Dialect:
- mysql
- postgres
- sqlite
- mssql
-  any
 Dialect library version: XXX
 Database version: PostgreSQL 9.6
 Sequelize version: 5.10.0
 Node Version: 10.15.3
 OS: Ubuntu 18.04.1 on Windows 10
 Tested with latest release:
- No
- Yes, specify that version: 5.10.0
alexnault
Metadata
Metadata
Assignees
Labels
status: understoodFor issues. Applied when the issue is understood / reproducible.For issues. Applied when the issue is understood / reproducible.type: bugDEPRECATED: replace with the "bug" issue typeDEPRECATED: replace with the "bug" issue type