From 418d150833ce86775f3893f22eff8caf9f719ea2 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 20 Aug 2018 12:30:33 +0200 Subject: [PATCH] Fix issue with SQLite setup --- app/config/propel.yaml.dist-sqlite | 3 +-- src/Gist/Composer/PostInstallHandler.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/config/propel.yaml.dist-sqlite b/app/config/propel.yaml.dist-sqlite index 8580a0b..b11f6c7 100644 --- a/app/config/propel.yaml.dist-sqlite +++ b/app/config/propel.yaml.dist-sqlite @@ -2,7 +2,7 @@ propel: database: connections: default: - adapter: mysql + adapter: sqlite classname: Propel\Runtime\Connection\ConnectionWrapper dsn: "sqlite:DATABASE_PATH" user: ~ @@ -10,7 +10,6 @@ propel: settings: charset: utf8 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: projectDir: src/ diff --git a/src/Gist/Composer/PostInstallHandler.php b/src/Gist/Composer/PostInstallHandler.php index 81650a0..366cc24 100644 --- a/src/Gist/Composer/PostInstallHandler.php +++ b/src/Gist/Composer/PostInstallHandler.php @@ -65,7 +65,7 @@ class PostInstallHandler $question = new Question('Password: [] ', ''); $substitutions['DATABASE_PASSWORD'] = $helper->ask($input, $output, $question); } 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); $substitutions['DATABASE_PATH'] = $helper->ask($input, $output, $question); $templateName = 'propel.yaml.dist-sqlite';