mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixing array to string conversion in dev/build for PHP 5.4
This commit is contained in:
parent
a2394331af
commit
813749e909
@ -390,13 +390,14 @@ abstract class SS_Database {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$spec_msg = DB::getConn()->convertIndexSpec($spec);
|
||||
|
||||
if($newTable || !isset($this->indexList[$table][$index_alt])) {
|
||||
$this->transCreateIndex($table, $index, $spec);
|
||||
$this->alterationMessage("Index $table.$index: created as $spec","created");
|
||||
$this->alterationMessage("Index $table.$index: created as $spec_msg","created");
|
||||
} else if($array_spec != DB::getConn()->convertIndexSpec($spec)) {
|
||||
$this->transAlterIndex($table, $index, $spec);
|
||||
$spec_msg=DB::getConn()->convertIndexSpec($spec);
|
||||
$this->alterationMessage("Index $table.$index: changed to $spec_msg <i style=\"color: #AAA\">(from {$array_spec})</i>","changed");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user