-
Notifications
You must be signed in to change notification settings - Fork 0
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
Auto migrate the version table #1
Conversation
lib/Doctrine/Migrations/Metadata/Storage/TableMetadataStorage.php
Outdated
Show resolved
Hide resolved
lib/Doctrine/Migrations/Metadata/Storage/TableMetadataStorage.php
Outdated
Show resolved
Hide resolved
ping @alcaeus |
I'm not sure if a separate command on its own would be the solution. For most commands, we can ask an interactive question if we see that there's a diff to the migrations table. If the users approves, we update their table and then continue the migration normally. If they don't want to upgrade, we abort the migration. For commands that are run non-interactively, e.g. as part of a deployment, we obviously can't get any consent, so I believe the best course of action would be to tell people to run a separate command to update manually, then restart the migration process. |
…of having a long list
I would say yes 👍 |
There are the following options:
I'm personally for option n.3. Any other idea? |
I would agree that method 3 is the safest choice, as it will require people to acknowledge the change and decide whether they want to individually approve every version table migration or allow it to be updated automatically |
c2211cc
to
c6a92b6
Compare
|
Moving to doctrine#878 |
This is a proposal on how to migrate the v2 versions table to v3 versions.
The thing that worries me here is that we do not ask the user if we should alter the table or not.
Does it make sense to have a separate command for it?