From 3eaa3234f9bd7f6e2361b32c1dd481023398850e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 18 Sep 2011 17:54:48 -0400 Subject: [PATCH] Drop fulltext indexes that aren't used in new def --- lib/schema.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/schema.php b/lib/schema.php index 0ac2255f16..e188037e68 100644 --- a/lib/schema.php +++ b/lib/schema.php @@ -562,12 +562,18 @@ class Schema $uniques = $this->diffArrays($old, $def, 'unique keys'); $indexes = $this->diffArrays($old, $def, 'indexes'); $foreign = $this->diffArrays($old, $def, 'foreign keys'); + $fulltext = $this->diffArrays($old, $def, 'fulltext indexes'); // Drop any obsolete or modified indexes ahead... foreach ($indexes['del'] + $indexes['mod'] as $indexName) { $this->appendDropIndex($statements, $tableName, $indexName); } + // Drop any obsolete or modified fulltext indexes ahead... + foreach ($fulltext['del'] + $fulltext['mod'] as $indexName) { + $this->appendDropIndex($statements, $tableName, $indexName); + } + // For efficiency, we want this all in one // query, instead of using our methods. -- 2.39.5