refactor propel configuration
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
// database acces configuration for mysql
|
||||
// ---------------------------------------------
|
||||
|
||||
//database type : mysql, sqlite, pgsql, etc
|
||||
define('THELIA_DB_ADAPTER','mysql');
|
||||
|
||||
// database login
|
||||
define('THELIA_DB_USER', '__DB_LOGIN__');
|
||||
|
||||
// database password
|
||||
define('THELIA_DB_PASSWORD', '__DB_PASSWORD__');
|
||||
|
||||
//database DSN
|
||||
define('THELIA_DB_DSN','mysql:dbname=__DB_NAME__;host:__DB_HOST__');
|
||||
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
// database acces configuration for mysql
|
||||
// ---------------------------------------------
|
||||
|
||||
//database type : mysql, sqlite, pgsql, etc
|
||||
define('THELIA_DB_ADAPTER','oracle');
|
||||
|
||||
// database login
|
||||
define('THELIA_DB_USER', '__DB_LOGIN__');
|
||||
|
||||
// database password
|
||||
define('THELIA_DB_PASSWORD', '__DB_PASSWORD__');
|
||||
|
||||
//database DSN
|
||||
define('THELIA_DB_DSN','mysql:dbname=__DB_NAME__;host:__DB_HOST__');
|
||||
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
// database acces configuration for postgresql
|
||||
// ---------------------------------------------
|
||||
|
||||
//database type : mysql, sqlite, pgsql, etc
|
||||
define('THELIA_DB_ADAPTER','pgsql');
|
||||
|
||||
// database login
|
||||
define('THELIA_DB_USER', '__DB_LOGIN__');
|
||||
|
||||
// database password
|
||||
define('THELIA_BD_PASSWORD', '__DB_PASSWORD__');
|
||||
|
||||
//database dsn
|
||||
define('THELIA_DB_DSN','pgsql:host=__DB_HOST__;port=__DB_PORT__;dbname=__DB_NAME__;user=__DB_LOGIN__;password=__DB_PASSWORD__');
|
||||
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
|
||||
// database acces configuration for sqlite
|
||||
// ---------------------------------------------
|
||||
|
||||
//database type : mysql, sqlite, pgsql, etc
|
||||
define('THELIA_DB_ADAPTER','sqlite');
|
||||
|
||||
// database login
|
||||
define('THELIA_DB_USER', '__DB_LOGIN__');
|
||||
|
||||
// database password
|
||||
define('THELIA_DB_PASSWORD', '__DB_PASSWORD__');
|
||||
|
||||
define('THELIA_DB_DSN','sqlite:__DB_FILE__');
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
$conf = array (
|
||||
'datasources' =>
|
||||
array (
|
||||
'thelia' =>
|
||||
array (
|
||||
'adapter' => THELIA_DB_ADAPTER,
|
||||
'connection' =>
|
||||
array (
|
||||
'dsn' => THELIA_DB_DSN,
|
||||
'user' => THELIA_DB_USER,
|
||||
'password' => THELIA_DB_PASSWORD,
|
||||
),
|
||||
),
|
||||
),
|
||||
'generator_version' => '1.6.8',
|
||||
);
|
||||
return $conf;
|
||||
6
local/config/database.yml
Normal file
6
local/config/database.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
database:
|
||||
connection:
|
||||
driver: mysql
|
||||
user: root
|
||||
password: azerty
|
||||
dsn: mysql:dbname=thelia;host:localhost
|
||||
Reference in New Issue
Block a user