-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
enable option '--no-interaction' for db:convert-type #18576
enable option '--no-interaction' for db:convert-type #18576
Conversation
Signed-off-by: Bernhard Ostertag <bernieo.code@gmx.de>
Thanks 👍 Console has some logic in place for such cases: https://github.com/nextcloud/3rdparty/blob/cc36ef4e9f63e0dd6009851d6f8a84a31911b57b/symfony/console/Helper/QuestionHelper.php#L49-L73
I would suggest to introduce a new variable with the default answer. Set it to true for no-interactive and false otherwise. |
That looks better. Should I create another pull request with the changes you proposed? Another thing: should that as option be added to the documentation here (I could do that as well): |
Update this pr if possible. We can also keep the current approach. The result is the same.
Yes. Thanks in advance 👍 |
…nteraction for command occ db:convert-type Variable is set to true for --no-interaction and false otherwise Signed-off-by: Bernhard Ostertag <bernieo.code@gmx.de>
I changed the documentation accordingly: nextcloud/documentation#1755 I suggest to backport this to stable 17 and stable 16. |
If someone of you could press merge ;) |
mörged! |
Signed-off-by: Bernhard Ostertag bernieo.code@gmx.de
When converting database type the option
--no-interaction
is currently ignored, which makes it impossible for some users to change the database type viaocc
(for example see: https://help.nextcloud.com/t/failed-to-connect-to-database-when-converting-sqlite-to-mysql/66782/7)This pull request adds a check for the option
--no-interaction
for the commandocc db:convert-type