-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Incorrect migrations with NULL fields on MariaDB 10.3 #3314
Comments
This issue belongs in the doctrine/dbal repository. |
@jwage This is the doctrine/dbal repository? |
@jwage Can this be reopened as I believe this is the correct repository for this issue? If it isn't please can you link me to the correct place? |
MariaDB 10.3 is not yet supported, will be as of DBAL 2.9 - see #3283. |
Sorry, I'm an idiot. I misread the repository. |
@svycka possibly new test scenario needed, as something else may be missing then. |
Sorry, my fault I had hardcoded database version in config. now with a correct version works better but still wrong.
looks like 2.8.0 works better because |
I just ran into the same issue! @jwage Could you please re-open this issue? It is not fixed yet. We are at From what @svycka has been revealing, this seems to be a regression anyway (because it already worked with dbal:2.8.0). |
Please create a new issue with a test case, @MartinMa |
Apologies, seems to be fixed in |
for symfony flex versions the version in the .env file if set, will overwrite these settings so remember to use the correct version there. e.g.: |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug Report
Summary
When running a
doctrine:migrations:diff
on MariaDB 10.3.5 there is an issue withNULL
fields being included in each subsequent migration diff.How to reproduce
https://github.com/joshhornby/doctrine-mariadb-migrations-example
Follow the example in the README of the above repo. Looking in the migrations folder https://github.com/joshhornby/doctrine-mariadb-migrations-example/tree/master/src/Migrations the second migration should be empty, but doctrine thinks it needs to update the
$test
field. If this field wasnullable = false
then the second migration would be empty.Expected behaviour
The following migrations should not contain any changes to the
test
column.The text was updated successfully, but these errors were encountered: