mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
don't dump indexes all on the same line
This commit is contained in:
parent
3a5e00fa53
commit
8060dd57d3
1 changed files with 2 additions and 2 deletions
|
@ -414,12 +414,12 @@ class CakeSchema extends Object {
|
||||||
unset($value['type']);
|
unset($value['type']);
|
||||||
$col .= join(', ', $this->_values($value));
|
$col .= join(', ', $this->_values($value));
|
||||||
} elseif ($field == 'indexes') {
|
} elseif ($field == 'indexes') {
|
||||||
$col = "\t\t'indexes' => array(";
|
$col = "\t\t'indexes' => array(\n\t\t\t";
|
||||||
$props = array();
|
$props = array();
|
||||||
foreach ((array)$value as $key => $index) {
|
foreach ((array)$value as $key => $index) {
|
||||||
$props[] = "'{$key}' => array(" . join(', ', $this->_values($index)) . ")";
|
$props[] = "'{$key}' => array(" . join(', ', $this->_values($index)) . ")";
|
||||||
}
|
}
|
||||||
$col .= join(', ', $props);
|
$col .= join(",\n\t\t\t", $props) . "\n\t\t";
|
||||||
} elseif ($field == 'tableParameters') {
|
} elseif ($field == 'tableParameters') {
|
||||||
$col = "\t\t'tableParameters' => array(";
|
$col = "\t\t'tableParameters' => array(";
|
||||||
$props = array();
|
$props = array();
|
||||||
|
|
Loading…
Add table
Reference in a new issue