-
-
Notifications
You must be signed in to change notification settings - Fork 447
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
False collation on current 2.6.x-dev 89b7ed6 version #1480
Comments
I don't think we changed anything in doctrine-bundle that could have affected this. You should find first which dependency caused this (most likely dbal). |
@ostrolucky already tested that. If I'm downgrading only doctrine-bundle to 2.5.6 and all other dependencies are unchanged the collation is correctly created. The first run is with 2.6.x-dev 89b7ed6 all other dependencies are the same: |
Strange... I also cannot spot anything that would explain this issue in the diff |
I would think that maybe doctrine/dbal still requires both to be define collate and collation: Now only the new option is defined: f1423b2#diff-df25e842a7fa5aa6cfb5504f8a15789ce8988d620bcd4ace17d2000222feb507 But need to test that out if I added the other option if it works then. Manually defining the default table options did atleast use the utf8mb4 this way did create the correct schema:
So it need have todo with the table default options. |
@greg0ire we have nothing define also not in the https://github.com/sulu/skeleton/blob/2.x/config/packages/doctrine.yaml Defining it is just the current workaround. |
Here is why I asked: symfony/recipes#1059 Are you going through this code path: DoctrineBundle/ConnectionFactory.php Lines 85 to 87 in 6e578fd
|
On commit
|
Its strange on 2.5.6 the |
That is why on that commit the |
Changing: - if ($driver instanceof AbstractMySQLDriver) {
+ if ($driver->getDatabasePlatform() instanceof AbstractMySQLPlatform) { Seems to work. |
I think what broke this was #1456 |
Yes I tested the |
We got a report from a doctrine-bundle |
One more reason to strongly deprecate this codepath. |
@greg0ire time to bring back ensure production config command which requires than serverVersion and charset being set ;) |
Confirming we're only seeing this issue when SentryBundle is enabled. |
@Mika56 I recommend setting the |
@alexander-schranz That did not fix the problem for us. Our migrations were trying to MODIFY every string column in the down() part |
Bug Report
I'm trying to find out why my table schema is not correclty utf8mb4 after using
@dev
dependencies.Summary
On current stable version all is correctly in my database utf8mb4. I have no collation set manually in doctrine.yaml. But after ugprading to
@dev
version the collation is created not longer as utf8mb4 which was the default since I think dbal 3 for mysql.Current behaviour
The schema has a strange mixed collation now:
How to reproduce
Expected behaviour
On 2.5.6 all works like expected:
Maybe related to #1478 /cc @greg0ire
The text was updated successfully, but these errors were encountered: