die("Error: The version option must be either a timestamp (e.g. 101129_185401)\nor the full name of a migration (e.g. m101129_185401_create_user_table).\n");
die("Error: The version option must be either a timestamp (e.g. 101129_185401)\nor the full name of a migration (e.g. m101129_185401_create_user_table).\n");
}
// try migrate up
// try migrate up
$migrations=$this->getNewMigrations();
$migrations=$this->getNewMigrations();
...
@@ -241,10 +249,11 @@ class MigrateController extends Controller
...
@@ -241,10 +249,11 @@ class MigrateController extends Controller
die("Error: The version option must be either a timestamp (e.g. 101129_185401)\nor the full name of a migration (e.g. m101129_185401_create_user_table).\n");
die("Error: The version option must be either a timestamp (e.g. 101129_185401)\nor the full name of a migration (e.g. m101129_185401_create_user_table).\n");
}
$db=$this->getDb();
$db=$this->getDb();
...
@@ -288,13 +299,14 @@ class MigrateController extends Controller
...
@@ -288,13 +299,14 @@ class MigrateController extends Controller
die("Error: CMigrationCommand.connectionID '{$this->connectionID}' is invalid. Please make sure it refers to the ID of a CDbConnection application component.\n");
die("Error: CMigrationCommand.connectionID '{$this->connectionID}' is invalid. Please make sure it refers to the ID of a CDbConnection application component.\n");
}
}
}
}
protectedfunctiongetMigrationHistory($limit)
protectedfunctiongetMigrationHistory($limit)
{
{
...
@@ -459,18 +482,21 @@ class MigrateController extends Controller
...
@@ -459,18 +482,21 @@ class MigrateController extends Controller