mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-06-26 06:29:32 +02:00
BUGFIX Don't require a 'name' assignment in index definitions for PostgreSQLDatabase->alterTable() - was breaking Versioned extension
This commit is contained in:
parent
a536ee1821
commit
7ee6640051
|
@ -397,7 +397,7 @@ class PostgreSQLDatabase extends SS_Database {
|
|||
if(!is_array($v)){
|
||||
$name=trim($v, '()');
|
||||
} else {
|
||||
$name=$v['name'];
|
||||
$name=(isset($v['name'])) ? $v['name'] : $k;
|
||||
}
|
||||
if(isset($indexes[$name])){
|
||||
if(is_array($v)){
|
||||
|
|
Loading…
Reference in New Issue
Block a user