Skip to content

fix(upsert): set isNewRecord to false when upserting (#12447) - #12485

Merged
sushantdhiman merged 1 commit into
sequelize:v6from
knoid:bugfix/upsert-v6
Jul 11, 2020
Merged

sushantdhiman merged 1 commit into
sequelize:v6from
knoid:bugfix/upsert-v6

Conversation

@knoid

@knoid knoid commented Jul 10, 2020 •

Copy link
Copy Markdown
Contributor

Pull Request check-list

Please make sure to review and check all of these items:

  • Does npm run test or npm run test-DIALECT pass with this change (including linting)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Have you added new tests to prevent regressions?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Did you update the typescript typings accordingly (if applicable)?
  • Did you follow the commit message conventions explained in CONTRIBUTING.md?

Description of change

Cherry picked #12447 into v6

@codecov

codecov Bot commented Jul 10, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #12485 into v6 will decrease coverage by 2.52%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v6   #12485      +/-   ##
==========================================
- Coverage   95.95%   93.42%   -2.53%     
==========================================
  Files          92       91       -1     
  Lines        8951     8764     -187     
==========================================
- Hits         8589     8188     -401     
- Misses        362      576     +214     
Impacted Files Coverage Δ
lib/dialects/mariadb/query.js 87.96% <100.00%> (ø)
lib/model.js 96.63% <100.00%> (+<0.01%) ⬆️
lib/dialects/sqlite/query-generator.js 3.00% <0.00%> (-93.50%) ⬇️
lib/dialects/sqlite/data-types.js 35.89% <0.00%> (-64.11%) ⬇️
lib/errors/database/timeout-error.js 50.00% <0.00%> (-50.00%) ⬇️
lib/transaction.js 96.05% <0.00%> (-3.95%) ⬇️
lib/dialects/abstract/query.js 91.02% <0.00%> (-0.97%) ⬇️
lib/sequelize.js 94.60% <0.00%> (-0.64%) ⬇️
lib/dialects/abstract/query-generator.js 96.89% <0.00%> (-0.51%) ⬇️
lib/data-types.js 91.03% <0.00%> (-0.35%) ⬇️
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 45d9c22...d37acee. Read the comment docs.

@sushantdhiman
sushantdhiman merged commit 96f4166 into sequelize:v6 Jul 11, 2020
@sushantdhiman

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 6.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants