Comparing
#2 with
#3
Content
[...]
public static function MigrateMsqlToSqlite() {
$path = Yii::getPathOfAlias('application.data');
$del = (@unlink($path . '/restaurantthedatabase.db'));
if (!$del) {
throw new CHttpException(403,'Access file permission denied!');
}
touch($path . '/
restaurantthedatabase.db');
$cmd = Yii::app()->dblite->createCommand();
$connection = Yii::app()->db;
$dbSchema = $connection->schema;[...]