add sample config for oracle connection
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,4 @@
|
|||||||
cache/*
|
cache/*
|
||||||
local/config/build.properties
|
local/config/build.properties
|
||||||
|
local/config/config_db.php
|
||||||
|
local/config/build
|
||||||
|
|||||||
@@ -3,9 +3,6 @@
|
|||||||
if (!isset($env)) {
|
if (!isset($env)) {
|
||||||
$env = 'prod';
|
$env = 'prod';
|
||||||
}
|
}
|
||||||
//
|
|
||||||
//use Symfony\Component\DependencyInjection;
|
|
||||||
//use Symfony\Component\DependencyInjection\Reference;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -16,3 +13,10 @@ if (!isset($env)) {
|
|||||||
$loader = require __DIR__ . '/autoload.php';
|
$loader = require __DIR__ . '/autoload.php';
|
||||||
|
|
||||||
define('THELIA_ROOT', __DIR__ .'/../');
|
define('THELIA_ROOT', __DIR__ .'/../');
|
||||||
|
|
||||||
|
if(file_exists(THELIA_ROOT . '/local/config/config_db.php'))
|
||||||
|
{
|
||||||
|
require THELIA_ROOT . '/local/config/config_db.php';
|
||||||
|
} else {
|
||||||
|
define('THELIA_INSTALL_MODE',true);
|
||||||
|
}
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
// ---------------------------------------------
|
// ---------------------------------------------
|
||||||
|
|
||||||
//database type : mysql, sqlite, pgsql, etc
|
//database type : mysql, sqlite, pgsql, etc
|
||||||
define('THELIA_DB_TYPE','mysql');
|
define('THELIA_DB_ADAPTER','mysql');
|
||||||
|
|
||||||
// database login
|
// database login
|
||||||
define('THELIA_BD_LOGIN', '__DB_LOGIN__');
|
define('THELIA_DB_USER', '__DB_LOGIN__');
|
||||||
|
|
||||||
// database password
|
// database password
|
||||||
define('THELIA_BD_PASSWORD', '__DB_PASSWORD__');
|
define('THELIA_DB_PASSWORD', '__DB_PASSWORD__');
|
||||||
|
|
||||||
//database DSN
|
//database DSN
|
||||||
define('THELIA_DB_DSN','mysql:dbname=__DB_NAME__;host:__DB_HOST__');
|
define('THELIA_DB_DSN','mysql:dbname=__DB_NAME__;host:__DB_HOST__');
|
||||||
|
|||||||
16
local/config/config_db.oracle.php
Normal file
16
local/config/config_db.oracle.php
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?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__');
|
||||||
@@ -4,12 +4,13 @@
|
|||||||
// ---------------------------------------------
|
// ---------------------------------------------
|
||||||
|
|
||||||
//database type : mysql, sqlite, pgsql, etc
|
//database type : mysql, sqlite, pgsql, etc
|
||||||
define('THELIA_DB_TYPE','pgsql');
|
define('THELIA_DB_ADAPTER','pgsql');
|
||||||
|
|
||||||
// database login
|
// database login
|
||||||
define('THELIA_BD_LOGIN', '__DB_LOGIN__');
|
define('THELIA_DB_USER', '__DB_LOGIN__');
|
||||||
|
|
||||||
// database password
|
// database password
|
||||||
define('THELIA_BD_PASSWORD', '__DB_PASSWORD__');
|
define('THELIA_BD_PASSWORD', '__DB_PASSWORD__');
|
||||||
|
|
||||||
define('THELIA_DB_DSN','pgsql:dbname=__DB_NAME__;host:__DB_HOST__');
|
//database dsn
|
||||||
|
define('THELIA_DB_DSN','pgsql:host=__DB_HOST__;port=__DB_PORT__;dbname=__DB_NAME__;user=__DB_LOGIN__;password=__DB_PASSWORD__');
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
// ---------------------------------------------
|
// ---------------------------------------------
|
||||||
|
|
||||||
//database type : mysql, sqlite, pgsql, etc
|
//database type : mysql, sqlite, pgsql, etc
|
||||||
define('THELIA_DB_TYPE','sqlite');
|
define('THELIA_DB_ADAPTER','sqlite');
|
||||||
|
|
||||||
// database login
|
// database login
|
||||||
define('THELIA_BD_LOGIN', '__DB_LOGIN__');
|
define('THELIA_DB_USER', '__DB_LOGIN__');
|
||||||
|
|
||||||
// database password
|
// database password
|
||||||
define('THELIA_BD_PASSWORD', '__DB_PASSWORD__');
|
define('THELIA_DB_PASSWORD', '__DB_PASSWORD__');
|
||||||
|
|
||||||
define('THELIA_DB_DSN','sqlite:__DB_FILE__');
|
define('THELIA_DB_DSN','sqlite:__DB_FILE__');
|
||||||
|
|||||||
18
local/config/config_thelia.php
Normal file
18
local/config/config_thelia.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?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.7',
|
||||||
|
);
|
||||||
|
return $conf;
|
||||||
Reference in New Issue
Block a user