Skip to content

Commit

Permalink
removing leading space within the sqlite dsn (#1292)
Browse files Browse the repository at this point in the history
the extra space was causing the below error when using an absolute path like /home/my.app.sq3
Unable to connect to the specific sql server: SQLSTATE[HY000] [14] unable to open database file
  • Loading branch information
nickdietel authored and marcj committed Nov 11, 2016
1 parent 398c343 commit 38f1044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Propel/Generator/Command/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private function initSqlite(ConsoleHelperInterface $consoleHelper)
{
$path = $consoleHelper->askQuestion('Where should the sqlite database be stored?', getcwd() . '/my.app.sq3');

return sprintf('sqlite: %s', $path);
return sprintf('sqlite:%s', $path);
}

private function initPgsql(ConsoleHelperInterface $consoleHelper)
Expand Down

0 comments on commit 38f1044

Please sign in to comment.