From 9e42285f61c92e08306102031f7d792e5140cf23 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 28 Nov 2014 17:13:52 +0300 Subject: [PATCH] Reverted #3305 --- framework/CHANGELOG.md | 1 - framework/console/controllers/BaseMigrateController.php | 9 --------- framework/console/controllers/MigrateController.php | 10 ---------- 3 files changed, 20 deletions(-) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 2ed367d..046c0b5 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -247,7 +247,6 @@ 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: 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) diff --git a/framework/console/controllers/BaseMigrateController.php b/framework/console/controllers/BaseMigrateController.php index 613b209..ff4acdf 100644 --- a/framework/console/controllers/BaseMigrateController.php +++ b/framework/console/controllers/BaseMigrateController.php @@ -624,15 +624,6 @@ abstract class BaseMigrateController extends Controller return $migrations; } - - /** - * Flushes DB schema cache. - * This method should be implemented if connection has DB schema support. - * @since 2.0.1 - */ - protected function refreshSchema() - { - } /** * Returns the migration history. diff --git a/framework/console/controllers/MigrateController.php b/framework/console/controllers/MigrateController.php index 2e1bf99..ab44427 100644 --- a/framework/console/controllers/MigrateController.php +++ b/framework/console/controllers/MigrateController.php @@ -179,14 +179,4 @@ class MigrateController extends BaseMigrateController 'version' => $version, ])->execute(); } - - /** - * @inheritdoc - * @since 2.0.1 - */ - protected function refreshSchema() - { - $this->db->schema->refresh(); - $this->stdout("DB schema cache was flushed.\n", Console::FG_GREEN); - } }