-
Notifications
You must be signed in to change notification settings - Fork 178
Doctrine Migration in upgrade to 5.1.0 fails #3021
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
Comments
Hmm, we'll take a look into this.. For now, you could try running:
(disclaimer: I've done this a million times, and never broke my DB, but i'm still obligated to tell you to make a backup first. ;-) ) |
I have the same migration issue. You should make sure to check what is being done by the update command by running This is the query that is causing issues:
|
I can confirm that running |
When testing for a colleague today, ran in the same issue, can also confirm running |
This actually means that the migrations are not used for their full potential. @bobdenotter is there a reason for this? Why not use the migration for the actual database schema changes of Bolt itself? |
@bobvandevijver Well, the intent was to have the migration take care of this. I think the problem we're facing is that Migrations can be generated only for specific platforms, which makes it hard to support MySQL, MariaDB, Sqlite and Postgres alike. If you have suggestions, i'm all ears. :-) |
Alright, that is actually a good one! The issue here was (or at least in my case) that most people might have already been lagging behind: I got a couple of table updates when running the It should be possible to leverage - php bin/console doctrine:schema:validate --skip-sync
- php bin/console doctrine:migrations:migrate
- php bin/console doctrine:schema:update --dump-sql
- php bin/console doctrine:schema:validate --skip-mapping It
|
That works, but be aware that it's getting removed for reasons i don't understand, and we've not been able to convey our usecase to the Doctrine people: doctrine/dbal#5026 |
I upgrade to 5.1 with
composer update
and then I see the message to run the Doctrine migrations command.When I run this command, it fails.
Details
Reproduction
The text was updated successfully, but these errors were encountered: