48 lines
1.3 KiB
PHP
48 lines
1.3 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
// This is the configuration for yiic console application.
|
||
|
|
// Any writable CConsoleApplication properties can be configured here.
|
||
|
|
return array(
|
||
|
|
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
|
||
|
|
'name'=>'My Console Application',
|
||
|
|
'commandMap' => array(
|
||
|
|
'fixture' => array(
|
||
|
|
'class'=>'application.extensions.fixtureHelper.FixtureHelperCommand',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
// application components
|
||
|
|
'components'=>array(
|
||
|
|
/*'db'=>array(
|
||
|
|
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
|
||
|
|
),*/
|
||
|
|
// uncomment the following to use a MySQL database
|
||
|
|
|
||
|
|
'db'=>array(
|
||
|
|
'connectionString' => 'mysql:host=localhost;dbname=usuarios_dev',
|
||
|
|
'emulatePrepare' => true,
|
||
|
|
'username' => 'root',
|
||
|
|
'password' => '',
|
||
|
|
'charset' => 'utf8',
|
||
|
|
),
|
||
|
|
'testdb'=>array(
|
||
|
|
'class' => 'CDbConnection',
|
||
|
|
'connectionString' => 'mysql:host=localhost;dbname=usuarios_test',
|
||
|
|
'emulatePrepare' => true,
|
||
|
|
'username' => 'root',
|
||
|
|
'password' => '',
|
||
|
|
'charset' => 'utf8',
|
||
|
|
),
|
||
|
|
'stagedb'=>array(
|
||
|
|
'class' => 'CDbConnection',
|
||
|
|
'connectionString' => 'mysql:host=maquetaweb.ws;dbname=maqueta_usuarios_stage',
|
||
|
|
'emulatePrepare' => true,
|
||
|
|
'username' => 'maqueta_intranet',
|
||
|
|
'password' => 'intranet',
|
||
|
|
'charset' => 'utf8',
|
||
|
|
),
|
||
|
|
|
||
|
|
'fixture'=>array(
|
||
|
|
'class'=>'system.test.CDbFixtureManager',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
);
|