diff --git a/bin/files/phinx.php b/bin/files/phinx.php index 1d5f00d..85be062 100644 --- a/bin/files/phinx.php +++ b/bin/files/phinx.php @@ -9,9 +9,9 @@ preg_match("/(.*?):(.*)/", $_ENV['DB_DSN'], $parts); $type = $parts[1]; -preg_match("/host=(\w+)/", $_ENV['DB_DSN'], $parts); +preg_match("/host=([^;]+)/", $_ENV['DB_DSN'], $parts); $host = $parts[1]; -preg_match("/dbname=(\w+)/", $_ENV['DB_DSN'], $parts); +preg_match("/dbname=([^;]+)/", $_ENV['DB_DSN'], $parts); $dbName = $parts[1]; $default = [