|
|
|
@ -490,6 +490,7 @@ abstract class BaseMigrateController extends Controller
|
|
|
|
|
$this->addMigrationHistory($class); |
|
|
|
|
$time = microtime(true) - $start; |
|
|
|
|
echo "*** applied $class (time: " . sprintf("%.3f", $time) . "s)\n\n"; |
|
|
|
|
$this->refreshSchema(); |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} else { |
|
|
|
@ -519,6 +520,7 @@ abstract class BaseMigrateController extends Controller
|
|
|
|
|
$time = microtime(true) - $start; |
|
|
|
|
echo "*** reverted $class (time: " . sprintf("%.3f", $time) . "s)\n\n"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} else { |
|
|
|
|
$time = microtime(true) - $start; |
|
|
|
@ -623,6 +625,16 @@ abstract class BaseMigrateController extends Controller
|
|
|
|
|
|
|
|
|
|
return $migrations; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Flushes DB schema cache. |
|
|
|
|
* This method should be implemented if connection has DB schema support. |
|
|
|
|
* @param string $name connection component name |
|
|
|
|
* @since 2.0.1 |
|
|
|
|
*/ |
|
|
|
|
protected function refreshSchema($name = 'db') |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Returns the migration history. |
|
|
|
|