From: cash Date: Fri, 17 May 2013 19:44:22 +0000 (-0400) Subject: Fixes #5479 adds group full text index if missing X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4c45640a3327aea985b383dcbecc5a439674f97c;p=lorea%2Felgg.git Fixes #5479 adds group full text index if missing --- diff --git a/engine/lib/upgrades/2013051700-1.8.15-add_missing_group_index-52a63a3a3ffaced2.php b/engine/lib/upgrades/2013051700-1.8.15-add_missing_group_index-52a63a3a3ffaced2.php new file mode 100644 index 000000000..ee99bdbc8 --- /dev/null +++ b/engine/lib/upgrades/2013051700-1.8.15-add_missing_group_index-52a63a3a3ffaced2.php @@ -0,0 +1,28 @@ +Index_type === 'FULLTEXT') { + $full_text_index_exists = true; + } + } +} + +if ($full_text_index_exists == false) { + $query = "ALTER TABLE {$db_prefix}groups_entity + ADD FULLTEXT name_2 (name, description)"; + if (!update_data($query)) { + elgg_log("Failed to add full text index to groups_entity table", 'ERROR'); + } +} diff --git a/version.php b/version.php index c5fc817d4..ac554a945 100644 --- a/version.php +++ b/version.php @@ -11,7 +11,7 @@ // YYYYMMDD = Elgg Date // XX = Interim incrementer -$version = 2013030600; +$version = 2013051700; // Human-friendly version name $release = '1.8.15';