From da3f88bba44e641d1afbdbf79decfcd6ea01d2f6 Mon Sep 17 00:00:00 2001 From: Michael V Date: Sun, 2 Jun 2024 17:02:41 +0200 Subject: [PATCH] Remove obsolute variable --- src/WslCreateDatabaseCommand.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/WslCreateDatabaseCommand.php b/src/WslCreateDatabaseCommand.php index 8f38d521a..6edbaaca3 100644 --- a/src/WslCreateDatabaseCommand.php +++ b/src/WslCreateDatabaseCommand.php @@ -66,7 +66,6 @@ public function execute(InputInterface $input, OutputInterface $output): int $settings = $this->parseSettingsFromFile($format, []); foreach ($settings['databases'] as $db) { - $create_cmd = ''; $query = "CREATE DATABASE IF NOT EXISTS {$db} DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci"; $create_cmd = 'mariadb -u homestead -psecret -e "'.$query.'"'; // run command to create the database