Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sequelize.col): associations #11419

Merged
merged 8 commits into from Oct 5, 2019
Merged

fix(sequelize.col): associations #11419

merged 8 commits into from Oct 5, 2019

Conversation

warkenji
Copy link
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

Sequelize.col doesn't support use of associations

Enum doesn't escape values on "Create Table"
Sequelize.col doesn't support use of associations
@warkenji
Copy link
Contributor Author

warkenji commented Sep 11, 2019

Sorry for the previous test, it worked with my dialect (Postgres)

@papb papb mentioned this pull request Sep 12, 2019
6 tasks
@papb
Copy link
Member

papb commented Sep 12, 2019

Hello, thanks for the PR, I am under the impression this solves an existing issue, do you know which one?

Also, to be honest I am surprised this little change you made solves it without breaking anything... Amazing! Can you explain how is it possible that your change does not break anything?

@papb papb added status: awaiting response For issues and PRs. OP must respond (or change something, if it is a PR). Maintainers have no action type: bug labels Sep 12, 2019
@warkenji
Copy link
Contributor Author

It's just by chance and I thought this change was logical compared to the associations between tables, that's all ^^"

@papb papb added status: awaiting maintainer and removed status: awaiting response For issues and PRs. OP must respond (or change something, if it is a PR). Maintainers have no action labels Sep 14, 2019
});
}).then(() => {
return Table1.findAll({
raw: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove raw and assert on return value

@sushantdhiman sushantdhiman added status: awaiting response For issues and PRs. OP must respond (or change something, if it is a PR). Maintainers have no action and removed status: awaiting maintainer labels Sep 19, 2019
@codecov
Copy link

codecov bot commented Oct 5, 2019

Codecov Report

Merging #11419 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #11419   +/-   ##
=======================================
  Coverage   96.26%   96.26%           
=======================================
  Files          94       94           
  Lines        9181     9181           
=======================================
  Hits         8838     8838           
  Misses        343      343
Impacted Files Coverage Δ
lib/dialects/abstract/query-generator.js 97.18% <100%> (ø) ⬆️

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 3834fe2...8396644. Read the comment docs.

@sushantdhiman sushantdhiman merged commit 1fe2401 into sequelize:master Oct 5, 2019
@sushantdhiman
Copy link
Contributor

🎉 This PR is included in version 5.19.3 🎉

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
released status: awaiting response For issues and PRs. OP must respond (or change something, if it is a PR). Maintainers have no action type: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants