Fix some old debug code.

This commit is contained in:
James Cole 2020-02-07 20:50:46 +01:00
parent 685107e950
commit 0c13ac2e93
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 2 additions and 3 deletions

View File

@ -59,8 +59,7 @@ class CreateDatabase extends Command
return 0;
}
// try to set up a raw connection:
$dsn = sprintf('mysql:host=%s;port=%d;charset=utf8mb4', env('DB_HOST'), env('DB_PORT'));
$this->line(sprintf('DSN is: "%s"', $dsn));
$dsn = sprintf('mysql:host=%s;port=%d;charset=utf8mb4', env('DB_HOST', 'localhost'), env('DB_PORT', '3306'));
$options = [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,

View File

@ -32,7 +32,7 @@ class SetLatestVersion extends Command
*
* @var string
*/
protected $description = 'Command description';
protected $description = 'Set latest version in DB.';
/**
* The name and signature of the console command.
*