From 4215b2f434efd22fe6c4dc97ebb63aeea6fb0e5d Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Thu, 11 Nov 2010 19:06:18 +0000 Subject: [PATCH] ENHANCEMENT: full text search indexes now identified more clearly in dev/build git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@113657 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Database.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/model/Database.php b/core/model/Database.php index 82dfcb143..ad0410749 100755 --- a/core/model/Database.php +++ b/core/model/Database.php @@ -391,6 +391,12 @@ abstract class SS_Database { } } + if(is_array($spec) && isset($spec['type'])){ + if($spec['type']=='fulltext'){ + $array_spec="({$spec['name']},{$spec['value']})"; + } + } + if($newTable || !isset($this->indexList[$table][$index_alt])) { $this->transCreateIndex($table, $index, $spec); $this->alterationMessage("Index $table.$index: created as $spec","created");