Fix issue with SQLite setup
This commit is contained in:
parent
9059fe214b
commit
418d150833
|
@ -2,7 +2,7 @@ propel:
|
||||||
database:
|
database:
|
||||||
connections:
|
connections:
|
||||||
default:
|
default:
|
||||||
adapter: mysql
|
adapter: sqlite
|
||||||
classname: Propel\Runtime\Connection\ConnectionWrapper
|
classname: Propel\Runtime\Connection\ConnectionWrapper
|
||||||
dsn: "sqlite:DATABASE_PATH"
|
dsn: "sqlite:DATABASE_PATH"
|
||||||
user: ~
|
user: ~
|
||||||
|
@ -10,7 +10,6 @@ propel:
|
||||||
settings:
|
settings:
|
||||||
charset: utf8
|
charset: utf8
|
||||||
queries:
|
queries:
|
||||||
utf8: "SET NAMES utf8 COLLATE utf8_unicode_ci, COLLATION_CONNECTION = utf8_unicode_ci, COLLATION_DATABASE = utf8_unicode_ci, COLLATION_SERVER = utf8_unicode_ci"
|
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
projectDir: src/
|
projectDir: src/
|
||||||
|
|
|
@ -65,7 +65,7 @@ class PostInstallHandler
|
||||||
$question = new Question('Password: [] ', '');
|
$question = new Question('Password: [] ', '');
|
||||||
$substitutions['DATABASE_PASSWORD'] = $helper->ask($input, $output, $question);
|
$substitutions['DATABASE_PASSWORD'] = $helper->ask($input, $output, $question);
|
||||||
} elseif ($dbms === 'SQLite') {
|
} elseif ($dbms === 'SQLite') {
|
||||||
$defaultPath = getcwd().'/app/data/gist.sqlite';
|
$defaultPath = getcwd().'/data/gist.sqlite';
|
||||||
$question = new Question("Ok! Where do you want me to save datas? [$defaultPath] ", $defaultPath);
|
$question = new Question("Ok! Where do you want me to save datas? [$defaultPath] ", $defaultPath);
|
||||||
$substitutions['DATABASE_PATH'] = $helper->ask($input, $output, $question);
|
$substitutions['DATABASE_PATH'] = $helper->ask($input, $output, $question);
|
||||||
$templateName = 'propel.yaml.dist-sqlite';
|
$templateName = 'propel.yaml.dist-sqlite';
|
||||||
|
|
Loading…
Reference in New Issue