blog data
This commit is contained in:
@@ -77,6 +77,25 @@ class Database extends Config
|
|||||||
'foreignKeys' => true,
|
'foreignKeys' => true,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
public $wrench_dockerblog = [
|
||||||
|
'DSN' => '',
|
||||||
|
'hostname' => '10.10.10.35',
|
||||||
|
'username' => 'bloguser',
|
||||||
|
'password' => 'bloguserF22!',
|
||||||
|
'database' => 'wrenchboard',
|
||||||
|
'DBDriver' => 'MySQLi',
|
||||||
|
'DBPrefix' => '',
|
||||||
|
'pConnect' => false,
|
||||||
|
'DBDebug' => (ENVIRONMENT !== 'production'),
|
||||||
|
'charset' => 'utf8',
|
||||||
|
'DBCollat' => 'utf8_general_ci',
|
||||||
|
'swapPre' => '',
|
||||||
|
'encrypt' => false,
|
||||||
|
'compress' => false,
|
||||||
|
'strictOn' => false,
|
||||||
|
'failover' => [],
|
||||||
|
'port' => 3306,
|
||||||
|
];
|
||||||
public $wrench_blog = [
|
public $wrench_blog = [
|
||||||
'DSN' => '',
|
'DSN' => '',
|
||||||
'hostname' => '10.10.33.60',
|
'hostname' => '10.10.33.60',
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class WrenchBlog extends BaseController
|
|||||||
//use ResponseTrait;
|
//use ResponseTrait;
|
||||||
|
|
||||||
protected $db;
|
protected $db;
|
||||||
public $con_name = 'wrench_blog';
|
public $con_name = 'wrench_dockerblog'; // 'wrench_blog';
|
||||||
|
|
||||||
private function apiData($blog_id) {
|
private function apiData($blog_id) {
|
||||||
$this->db = \Config\Database::connect($this->con_name);
|
$this->db = \Config\Database::connect($this->con_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user