From 7edb371a9137c635d3559c0ba3f47a72881df1f2 Mon Sep 17 00:00:00 2001 From: Tom Temme Date: Mon, 22 Jul 2024 11:31:11 +0200 Subject: [PATCH] removed implode because it didn't use an array --- src/Logic/Database/Migrator/DatabaseMigrationBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logic/Database/Migrator/DatabaseMigrationBuilder.php b/src/Logic/Database/Migrator/DatabaseMigrationBuilder.php index f4ec78b..469fdd7 100644 --- a/src/Logic/Database/Migrator/DatabaseMigrationBuilder.php +++ b/src/Logic/Database/Migrator/DatabaseMigrationBuilder.php @@ -74,7 +74,7 @@ public function buildAndCopy(): string private function createMigrationFile(): string { $ignoredTables = $this->getIgnoreTablesAsString(); - $debugMessage = date("H:i:s:u") . " migration ignore tables: " . implode(",", $ignoredTables) . "\n"; + $debugMessage = date("H:i:s:u") . " migration ignore tables: " . $ignoredTables . "\n"; shell_exec("bash " . $this->_path . ConstantsTestStage::BACKUP_LOCAL_DATABASE . " -i'".$ignoredTables."' -u'".$this->_testDatabaseConfig->getUsername()."' -p'".$this->_testDatabaseConfig->getPassword()."' -h'".$this->_testDatabaseConfig->getServer()."' -P'".$this->_testDatabaseConfig->getPort()."' -d'".$this->_testDatabaseConfig->getName()."' -t'" . $this->_path . ConstantsTestStage::DATABASE_MIGRATION_DIRECTORY . "' 2>&1"); $debugMessage .= date("H:i:s:u") . " backuped local database \n"; return $debugMessage;