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 latest #232

Merged
merged 2 commits into from
Jul 5, 2020
Merged

fix: sequelize latest #232

merged 2 commits into from
Jul 5, 2020

Conversation

mmkal
Copy link
Contributor

@mmkal mmkal commented Jul 5, 2020

sequelize@next no longer seems to exist - this switches CI over to sequelize@latest.

@mmkal mmkal requested a review from papb July 5, 2020 22:25
const describeModel = (model: any) =>
model.describe().then(d => {
// FIXME [sequelize@>=6] remove this hack when only sequelize>=6 is supported
Object.keys(d).forEach(k => delete d[k].unique);
Copy link
Member

Choose a reason for hiding this comment

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

🤔 Odd, why is this being done?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're asserting in a few places on the output of this function. The new version of sequelize includes an extra property unique. So that tests pass for old and new sequelize, this deletes it.

@mmkal mmkal merged commit a2002e8 into master Jul 5, 2020
@papb papb deleted the sequelize-latest branch October 11, 2020 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants