-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add --no-backup option to databse:copy and database:copy:all #125
Conversation
Good idea - thanks for your contribution! Couple of small comments.
|
I've also just switched CI over to GitHub Actions so if you rebase your branch against master you should get some improved code reviews/checks. |
hi @typhonius thank you! All of your feedback sounds good to me, I'll get to work on them |
14e93b9
to
3300a01
Compare
Updated with tests... it looks like my force push cancelled the GitHub checks, but |
Thanks, I’ve seen that error on other PRs and looks like it’s an unrelated step later where we rebuild the phar tool. I’ll push an update later on today because I have an inkling about how to fix it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are able to rebase (again) against master and fix the following two minor changes then I'll merge it :)
src/Commands/DbCommand.php
Outdated
if (!$options['no-backup']) { | ||
$this->moveDbs($uuid, $environmentFrom, $environmentTo); | ||
} else { | ||
$this->moveDbs($uuid, $environmentFrom, $environmentTo, null, $backup = false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switch $backup = false
to just false
.
src/Commands/DbCommand.php
Outdated
if (!$options['no-backup']) { | ||
$this->moveDbs($uuid, $environmentFrom, $environmentTo, $dbName); | ||
} else { | ||
$this->moveDbs($uuid, $environmentFrom, $environmentTo, $dbName, $backup = false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switch $backup = false to just false.
…-no-backup option for database:copy:all.
3300a01
to
5790123
Compare
All green! 😁 |
Resolves #124