Difference between #2 and #3 of
Migration the database schema to another one

Changes

Title unchanged

Migration the database schema to another one

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Migration, copy, clone, anotherdatabase, schema design

Content changed

[...]
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;
[...]
1 0
5 followers
Viewed: 11 375 times
Version: 1.1
Category: Tutorials
Last updated by: Kostas Apazidis (KonApaz)
Created on: May 26, 2014
Last updated: 9 years ago
Update Article

Revisions

View all history