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

[*] Command Generate - Fix foreign key imports using connection URL with MySQL #293

Merged
merged 5 commits into from Oct 24, 2019

Conversation

rap2hpoutre
Copy link
Contributor

I do not usually like PR that fixes two issues, but in this case, fixing one has revealed one other: I would have not seen the foreign key error without Sequelize replacements. So the two fix are relatives to each other. So basically:

  • field = '${foo}' as been replaced by field = :foo+{ replacements: { foo } }
  • In case there is no dbName, connectionUrl is parsed for MySQL (which is the only one who requires its own database name when analyzing foreign keys).

@rap2hpoutre rap2hpoutre merged commit 84b0440 into devel Oct 24, 2019
@rap2hpoutre
Copy link
Contributor Author

@arnaudbesnier arnaudbesnier deleted the fix/sequelize-replacements branch October 28, 2019 07:47
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