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
Error in one-to-many example when using MySQL #1102
Comments
This is not a bookshelf issue. Can you open a similar issue over on knex's repository? |
Sure, no problem. I saw it more as an issue with the specific example given on On 25 January 2016 at 12:32, Ricardo Graça notifications@github.com wrote:
|
I think the example is supposed to work without having to specify an |
Yeah, but the solution is just a workaround. I still think the migration should just work across all supported dialects, but no one has suggested that in any of those issues. I'm not against adding a note to the docs saying that is a known issue, and a link to the issue over at knex, but it should be noted that it is a workaround for MySQL only. |
From the homepage:
I noticed:
Which, on MySQL at the least, is due to trying to add a foreign key between a signed int and an unsigned int.
Changing to:
resolves the issue.
Cheers!
The text was updated successfully, but these errors were encountered: