Hi, I'm trying for a project that uses 2 differents DBs to run generations on a DB wich is not the default one.
My models are already working fine using : config.php
return new \Phalcon\Config(array(
'database' => array(
'adapter' => 'Mysql',
'host' => 'localhost',
'username' => 'root',
'password' => '',
'dbname' => 'dttp11expl01j',
'charset' => 'utf8'
),
'db_params' => array(
'adapter' => 'Mysql',
'host' => 'localhost',
'username' => 'root',
'password' => '',
'dbname' => 'dttp11expl02j',
'charset' => 'utf8'
),
And in my models
class Users extends \Phalcon\Mvc\Model {
public function initialize(){
$this->setConnectionService('db_params');
}
But I cannot find any info on how to run a migration that uses this db_params.