From 851dbd282b6cfa819c8314146a6eed40e7337fb1 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 8 Aug 2018 11:29:15 +0200 Subject: [PATCH] Composer installation handler: database configuration templates --- app/config/propel.yaml.dist-mysql | 32 ++++++++++++++++++++++++++++++ app/config/propel.yaml.dist-sqlite | 32 ++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 app/config/propel.yaml.dist-mysql create mode 100644 app/config/propel.yaml.dist-sqlite diff --git a/app/config/propel.yaml.dist-mysql b/app/config/propel.yaml.dist-mysql new file mode 100644 index 0000000..fa13d75 --- /dev/null +++ b/app/config/propel.yaml.dist-mysql @@ -0,0 +1,32 @@ +propel: + database: + connections: + default: + adapter: mysql + classname: Propel\Runtime\Connection\ConnectionWrapper + dsn: "mysql:host=DATABASE_HOST;dbname=DATABASE_NAME" + user: "DATABASE_USERNAME" + password: "DATABASE_PASSWORD" + 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/ + schemaDir: src/ + outputDir: src/ + phpDir: src/ + phpConfDir: app/config/propel + sqlDir: app/propel/sql + migrationDir: app/propel/migration + + runtime: + defaultConnection: default + connections: [default] + + generator: + defaultConnection: default + connections: [default] + objectModel: + addClassLevelComment: false diff --git a/app/config/propel.yaml.dist-sqlite b/app/config/propel.yaml.dist-sqlite new file mode 100644 index 0000000..8580a0b --- /dev/null +++ b/app/config/propel.yaml.dist-sqlite @@ -0,0 +1,32 @@ +propel: + database: + connections: + default: + adapter: mysql + classname: Propel\Runtime\Connection\ConnectionWrapper + dsn: "sqlite:DATABASE_PATH" + user: ~ + password: ~ + 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/ + schemaDir: src/ + outputDir: src/ + phpDir: src/ + phpConfDir: app/config/propel + sqlDir: app/propel/sql + migrationDir: app/propel/migration + + runtime: + defaultConnection: default + connections: [default] + + generator: + defaultConnection: default + connections: [default] + objectModel: + addClassLevelComment: false