From 60b4c1c03d56bf9776f0a23b3aef0541213bddb9 Mon Sep 17 00:00:00 2001 From: enteresanlikk Date: Wed, 29 May 2024 20:30:58 +0300 Subject: [PATCH] Add IS_LOCAL control for import database. --- src/Command/Pull/PullCommandBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/Pull/PullCommandBase.php b/src/Command/Pull/PullCommandBase.php index ce18ba740..d6f8531ae 100644 --- a/src/Command/Pull/PullCommandBase.php +++ b/src/Command/Pull/PullCommandBase.php @@ -554,7 +554,7 @@ private function printDatabaseBackupInfo( } private function importRemoteDatabase(DatabaseResponse $database, string $localFilepath, Closure $outputCallback = NULL): void { - if ($database->flags->default) { + if ($database->flags->default || getenv('IS_LOCAL')) { // Easy case, import the default db into the default db. $this->doImportRemoteDatabase($this->getLocalDbHost(), $this->getLocalDbUser(), $this->getLocalDbName(), $this->getLocalDbPassword(), $localFilepath, $outputCallback); }