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

Schema diff fails with MariaDB 10.2 #83

Closed
m-vo opened this issue Jan 5, 2018 · 5 comments
Closed

Schema diff fails with MariaDB 10.2 #83

m-vo opened this issue Jan 5, 2018 · 5 comments

Comments

@m-vo
Copy link
Member

m-vo commented Jan 5, 2018

I upgraded to MariaDB 10.2.12 (10.2.12-MariaDB-10.2.12+maria~xenial) on my dev machine and noticed that now the schema diff stopped working properly (contao bundles 4.5.1, doctrine/dbal 2.6.3).

I haven't had time to investigate further but here is what I am seeing: There are lots of entries that request to alter tables (even without the tables existing) and - if existing - columns.

This is what's happening to a new install:

screenshot_20180105_181554

screenshot_20180105_184512

@leofeyer I noticed that you referred to the same or a similar problem here but I'm not sure if there was a solution.

Also there seems to be a related issue in the community forum.


By the way: Having innodb_strict_mode disabled and/or sql_mode set to just NO_ENGINE_SUBSTITUTION doesn't make a difference.

@m-vo
Copy link
Member Author

m-vo commented Jan 5, 2018

Had a quick look in the debugger. It's the same issue as in here: contao/core-bundle#918 (comment)

So _default equals "''" in $fromSchema vs. "" in $toSchema.

(Also: doctrine entities get created successfully but then are missing in the $fromSchema. Not sure if this had worked before.)

@leofeyer
Copy link
Member

leofeyer commented Jan 5, 2018

@fritzmg
Copy link
Contributor

fritzmg commented Jan 6, 2018

@leofeyer all tickets (including https://jira.mariadb.org/browse/MDEV-13132) are closed now, yet the issue still exists.

@m-vo
Copy link
Member Author

m-vo commented Jan 6, 2018

I am still not sure if it's a MariaDB or a doctrine issue. But it looks like it is the latter as doctrine seems to only support MariaDB 10.2. as of v2.7 which is not released yet.

I can confirm that using the current doctrine/dbal dev-master branch solves the default value problem but it could still take a long time until a stable branch will get released. So unfortunately Contao is not compatible to Maria DB 10.2 right now, right? :-/

@leofeyer
Copy link
Member

leofeyer commented Jan 6, 2018

Correct, you need Doctrine 2.7 (not yet released).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants