<?php
//include_once 'config.database.php';
// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.

return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	//'migrationPath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'migration',
	'name'=>'My Console Application',
	'components'=>array(
		'db'=>array(
            'connectionString' => 'mysql:host=localhost;dbname=windel_crm',
            'schemaCachingDuration' => 3600,
            'emulatePrepare' => true,
            'username' => 'windel_webcrm',
            'password' => 'j7x^p?%qa#M2TcnpMa*2',
            'charset' => 'latin1',
            'enableParamLogging' => true,
            'enableProfiling'=>true,
        ),
	),
    'commandMap'=>array(
        'migrate'=>array(
            'class'=>'system.cli.commands.MigrateCommand',
            'migrationPath'=>'application.migrations',
            'migrationTable'=>'tbl_migration',
            'connectionID'=>'db',
            //'templateFile'=>'application.migrations.template',
        ),
    )
);