I have next db configuration:
‘db’=>array(
'connectionString' => 'pgsql:host=****;port=****;dbname=****',
'username' => '****',
'password' => '****',
'charset' => 'utf8',
),
running
yiic shell C:\Projects\MyProjectUrl\index.php
model tableName
i’m getting error, that table doesn’t exists.
But when I make:
<?php echo Yii::app()->getDb()->createCommand(‘SELECT **** FROM ****’)->queryScalar(); ?>
it works.
Please, help me!!!