From f5672543d7fca69a8df056d7d5847794c67cf3d0 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Tue, 10 Jan 2017 09:01:07 -0800 Subject: [PATCH] Correct migrations to allow uninstallation success --- migrations/release_1_4_0_schema.php | 5 ----- migrations/release_1_4_1_schema.php | 10 ++-------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/migrations/release_1_4_0_schema.php b/migrations/release_1_4_0_schema.php index b7c9dc0..44f8e31 100644 --- a/migrations/release_1_4_0_schema.php +++ b/migrations/release_1_4_0_schema.php @@ -48,11 +48,6 @@ public function revert_schema() 'similar_topics_ignore', ), ), - 'change_columns' => array( - $this->table_prefix . 'forums' => array( - 'similar_topic_forums' => array('VCHAR_UNI', ''), - ), - ), ); } } diff --git a/migrations/release_1_4_1_schema.php b/migrations/release_1_4_1_schema.php index 58a4932..5a0e146 100644 --- a/migrations/release_1_4_1_schema.php +++ b/migrations/release_1_4_1_schema.php @@ -14,7 +14,8 @@ class release_1_4_1_schema extends \phpbb\db\migration\migration { static public function depends_on() { - return array('\vse\similartopics\migrations\release_1_4_0_schema'); + return array('\vse\similartopics\migrations\release_1_3_1_data', + '\vse\similartopics\migrations\release_1_4_0_schema'); } public function update_schema() @@ -30,12 +31,5 @@ public function update_schema() public function revert_schema() { - return array( - 'change_columns' => array( - $this->table_prefix . 'forums' => array( - 'similar_topic_forums' => array('MTEXT', ''), - ), - ), - ); } }