Skip to content

Commit

Permalink
one of these is not like the other 🎻
Browse files Browse the repository at this point in the history
  • Loading branch information
dpi committed Jul 6, 2021
1 parent 9e41a61 commit 86a2b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scaffold/required/RoboFileBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public function devConfigReadOnly() {
* Path to sql file to import.
*/
public function devImportDb($sql_file) {
$start = new DateTime();
$start = new DateTimeImmutable();
$this->_exec("$this->drush_cmd sql:drop --yes");
$this->_exec("$this->drush_cmd sql:query --file=$sql_file");
$this->devCacheRebuild();
Expand All @@ -482,7 +482,7 @@ public function devImportDb($sql_file) {
* Name of sql file to be exported.
*/
public function devExportDb($name = 'dump') {
$start = new DateTime();
$start = new DateTimeImmutable();
$this->_exec("$this->drush_cmd sql:dump --gzip --result-file=$name.sql");
$this->say('Duration: ' . (new \DateTimeImmutable())->diff($start)->format('%im %Ss'));
$this->say("Database $name.sql.gz exported");
Expand Down

0 comments on commit 86a2b8f

Please sign in to comment.