From 07e1a63bb48c51236bea054218d37c8cccf9543c Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Mon, 7 Mar 2016 17:21:05 +0900 Subject: [PATCH] fix for sqlite --- bin/files/phinx.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/files/phinx.php b/bin/files/phinx.php index 0c7a921..8ebd291 100644 --- a/bin/files/phinx.php +++ b/bin/files/phinx.php @@ -9,7 +9,7 @@ $pdo = new PDO($_ENV['DB_DSN'], $_ENV['DB_USER'], $_ENV['DB_PASS']); preg_match("/dbname=(\w+)/i", $_ENV['DB_DSN'], $parts); -$name = $parts[1]; +$name = isset($parts[1]) ? $parts[1] : ''; return [ "paths" => [