diff --git a/src/Controller/SetupController.php b/src/Controller/SetupController.php index 07a081d..2971485 100644 --- a/src/Controller/SetupController.php +++ b/src/Controller/SetupController.php @@ -87,7 +87,13 @@ public function index(Request $request, UserPasswordHasherInterface $userPasswor $migrations = array(); } - $parsedDsn = parse_url($this->params->get('app.database_url')); + $is_sqlite = preg_match("/^(sqlite):\/\/.*\w/", $this->params->get('app.database_url'), $matches); + if($is_sqlite) { + $parsedDsn = parse_url($this->params->get('app.database_url')); + $parsedDsn['scheme'] = 'sqlite'; + } else { + $parsedDsn = parse_url($this->params->get('app.database_url')); + } $migrationfiles = array(); $finder = new Finder();