mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Adjusted #3305: MigrateController::refreshSchema()
is no more called automatically
This commit is contained in:
@ -243,7 +243,7 @@ Yii Framework 2 Change Log
|
||||
- Enh #3283: Added `$checkAjax` to `yii\web\User::loginRequired()` (qiangxue)
|
||||
- Enh #3284: Added support for checking multiple ETags by `yii\filters\HttpCache` (qiangxue)
|
||||
- Enh #3298: Supported configuring `View::theme` using a class name (netyum, qiangxue)
|
||||
- Enh #3305: `yii migrate` now automatically flushes DB schema cache after successful migration (6pblcb, samdark)
|
||||
- Enh #3305: Added `refreshSchema()` method to `yii\console\controllers\BaseMigrateController` to allow flushing DB schema cache (6pblcb, samdark)
|
||||
- Enh #3328: `BaseMailer` generates better text body from html body (armab)
|
||||
- Enh #3380: Allow `value` in `defaultValueValidator` to be a closure (Alex-Code)
|
||||
- Enh #3384: Added callback-style transactions (leandrogehlen, Ragazzo, samdark)
|
||||
|
@ -490,7 +490,6 @@ abstract class BaseMigrateController extends Controller
|
||||
$this->addMigrationHistory($class);
|
||||
$time = microtime(true) - $start;
|
||||
$this->stdout("*** applied $class (time: " . sprintf("%.3f", $time) . "s)\n\n", Console::FG_GREEN);
|
||||
$this->refreshSchema();
|
||||
|
||||
return true;
|
||||
} else {
|
||||
@ -629,10 +628,9 @@ abstract class BaseMigrateController extends Controller
|
||||
/**
|
||||
* 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')
|
||||
protected function refreshSchema()
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -183,7 +183,7 @@ class MigrateController extends BaseMigrateController
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
protected function refreshSchema($name = 'db')
|
||||
protected function refreshSchema()
|
||||
{
|
||||
$this->db->schema->refresh();
|
||||
$this->stdout("DB schema cache was flushed.\n", Console::FG_GREEN);
|
||||
|
Reference in New Issue
Block a user