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
[2.0] MariaDB: The default version column length is too long #247
Comments
This was referenced Jan 2, 2019
Thanks @mhujer! I have made these changes here doctrine/migrations#773 and here #249 |
That length is oddly specific. It was introduced in https://github.com/doctrine/DoctrineMigrationsBundle/pull/228/files#diff-fdd764ee72f777e180ace83412a44158R61 , not sure why… |
I believe it is because the version string we generate by default is 14 characters long. |
Indeed
👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
When MariaDB is used and Migrations 2.0 are installed to a new Symfony application with default Doctrine configuration, creating a migration will fail.
Related issues: doctrine/migrations#514 and doctrine/migrations#538
Current behavior
Error message is displayed when creating a migration diff:
How to reproduce
doctrine:migrations:diff
Expected behavior
The
migration_versions
table is created without failing on error.Workaround
Add
column_length: 14
toconfig/packages/doctrine_migrations.yaml
Proposed solution
Change default value in
DoctrineMigrationsBundle/DependencyInjection/Configuration.php
Line 41 in 85d8325
The text was updated successfully, but these errors were encountered: