Comments (3)
Looking to get feedback / approval for this bug before I put time into it.
from sequelize.
I did some digging and found that the createdAt
timestamp is explicitly removed / omitted from the updateOnDuplicate
array, see:
Line 2706 in 6aba382
This change was introduced with commit 0ce88c4. Initially updateOnDuplicate
had a boolean option to enable all fields, in that scenario it can be assumed that we don't want to implicitly update the createdAt
timestamp, however this functionality is not supported anymore, as of 8b937dd updateOnDuplicate
is required to be an array of field names, in which case we can assume that if the user provides thecreatedAt
field they want it to be updated, like I do, hence we can remove the exclusion of createdAt
.
from sequelize.
Related Issues (20)
- 0x939 is not supported by node-oracledb in Thin mode
- Ability To Chain Successive `withScope` Calls
- Use EXISTS for AbstractQueryGenerator._generateSubQueryFilter()
- Naming collision between attribute 'id' and association 'id' on model ABC. HOT 1
- sequelize not includes only virtual fields attributes from related data in result set HOT 2
- Support JSR HOT 4
- Allow creating transaction in hooks(Postgres RLS)
- Add dialect support for QuestDB
- Update method: Return the updated rows with attribute names instead of column names.
- SQL joins not working properly when database schema is provided when creating Sequelize instance (ibmi dialect)
- QueryInterface removeConstraint method fails to remove CHECK constraints (MySQL) HOT 1
- AUTOINCREMENT not set in schema when connecting to SQLite DB HOT 1
- Queries cant escape %
- FindOne or FindAll missing Hookable interface
- Please Fix belongsToMany M:N Associations
- users.belongsToMany called with something that's not a subclass of Sequelize.Model
- users.belongsToMany called with something that's not a subclass of Sequelize.Model Solve This Error
- Sequelize 7 + TS: type-checking fails on query if the where clause includes null for a nullable attribute HOT 1
- Using `defaultValue` with `mssql` breaks `sequelize.sync({ alter: true })` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sequelize.