FIX handling of fulltext indexes declared as strings

This commit is contained in:
micmania1 2014-08-16 10:07:26 +00:00
parent 4f6a9523f6
commit d112ca5d12

View File

@ -482,6 +482,18 @@ class PostgreSQLDatabase extends SS_Database {
$ts_details=$this->fulltext($this_index, $tableName, $name);
$fulltexts.=$ts_details['fulltexts'] . ', ';
$triggers.=$ts_details['triggers'];
} else if(is_string($this_index)) {
preg_match('/^fulltext\ \((.+)\)$/i', $this_index, $matches);
if(count($matches) == 2) {
$index = array(
'type' => 'fulltext',
'name' => $name,
'value' => $matches[1]
);
$ts_details=$this->fulltext($index, $tableName, $name);
$fulltexts.=$ts_details['fulltexts'] . ', ';
$triggers.=$ts_details['triggers'];
}
}
}
}