Here is my problem. I have a yii
web project
with a connection to a certain db
that is defined in main.php
like that:
'db'=>array(
'pdoClass' => 'NestedPDO',
'connectionString' =>'sqlite:/var/www/my_project/protected/data/runtime/myDb.db',
'class' => 'CDbConnection',
'schemaCachingDuration' => 100,
),
In one of the php
scripts I run a command that copy a new database
instead of the old one.
The problem is that in the script I don't notice the change.
For example, If in the databsae "myDb" there is a table
named Table_1 that contains 4 records and in the new "myDb" that table contains 8 records, In my php
script after I will run the command that changes "myDb" I will still see that "Table_1" has 4 records.