Migration the database schema to another one

Comparing #2 with #3

Revision #3 was created by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz) on Jul 4, 2014, 12:38:42 PM.

-

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;
[...]