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
Fixed error when setting Oracle column to not null #8111
Conversation
So after testing a fresh install I do get the error:
I tried testing with SQLite to see if this was the case for other schemas, and was surprised to discover |
Okay, so I see the issue. When I updated the migration But to that point, the "down" migration in So I think the fix is to:
Does that sound alright @rijkvanzanten? |
Woooooooooooo @nickrum we found a gap in the SQLite implementation 😵 🔫
Ohhhhhh interesting
While it's technically not really kosher to retroactively change migrations, I think this is enough of an edge case in oracle specifically to do it. I'd go with this direction 👍🏻 |
Yeah, those functions have only been added a few weeks ago. Shouldn't be too hard to add SQLite support. I can take care of that if you want, @aidenfoxx. |
@nickrum I mentioned to their dev that I'd take a look this weekend if I get the chance. But if you don't see a PR by Monday then you're free to jump on it (assuming you've not already started). 😄 It shouldn't be required for this fix though since Oracle is already |
Tested migrations up and down against MySQL, SQLite and Oracle. |
Also, just a heads up @rijkvanzanten and @nickrum. I added |
Normalized migrations so Oracle lines up with other schemas, and also fixed
down
migrations which didn't re-applyNOT NULL
constraint.