mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
BUG FIX: index names now created properly
This commit is contained in:
parent
b0780eeff6
commit
05c47f09cb
@ -573,7 +573,7 @@ class PostgreSQLDatabase extends Database {
|
||||
|
||||
protected function getIndexSqlDefinition($tableName, $indexName, $indexSpec, $asDbValue=false) {
|
||||
|
||||
//TODO: create fill factor support and table partition support
|
||||
//TODO: create table partition support
|
||||
//TODO: create clustering options
|
||||
|
||||
if(!$asDbValue){
|
||||
@ -699,7 +699,8 @@ class PostgreSQLDatabase extends Database {
|
||||
$value[1].=$value[$i];
|
||||
}
|
||||
|
||||
$key=trim(trim(str_replace("\"", '', $value[1])), '()');
|
||||
$key=substr($value[1], 0, strpos($value[1], ')'));
|
||||
$key=trim(trim(str_replace("\"", '', $key), '()'));
|
||||
$indexList[$key]['indexname']=$index['indexname'];
|
||||
$indexList[$key]['spec']=$prefix . '(' . $key . ')';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user