don't enforce semicolon at end of dsn

propel:database:create is not working if you have dbname at end of dsn without semicolon
This commit is contained in:
Łukasz Barulski 2015-10-27 10:56:37 +01:00
parent ec464b1f8f
commit a730943db2

View file

@ -91,7 +91,7 @@ class DatabaseCreateCommand extends AbstractCommand
$dbName = $this->parseDbName($config['dsn']);
$config['dsn'] = preg_replace(
'#dbname='.$dbName.';#',
'#dbname='.$dbName.';?#',
'',
$config['dsn']
);