lib/Cake/Model/Datasource/Database/Sqlserver.php 1 location
|
@@ 562-564 (lines=3) @@
|
559 |
|
} |
560 |
|
|
561 |
|
foreach (array('columns', 'indexes') as $var) { |
562 |
|
if (is_array(${$var})) { |
563 |
|
${$var} = "\t" . implode(",\n\t", array_filter(${$var})); |
564 |
|
} |
565 |
|
} |
566 |
|
return trim("CREATE TABLE {$table} (\n{$columns});\n{$indexes}"); |
567 |
|
default: |
lib/Cake/Model/Datasource/DboSource.php 1 location
|
@@ 1767-1771 (lines=5) @@
|
1764 |
|
return trim("DELETE {$alias} FROM {$table} {$aliases}{$conditions}"); |
1765 |
|
case 'schema': |
1766 |
|
foreach (array('columns', 'indexes', 'tableParameters') as $var) { |
1767 |
|
if (is_array(${$var})) { |
1768 |
|
${$var} = "\t" . implode(",\n\t", array_filter(${$var})); |
1769 |
|
} else { |
1770 |
|
${$var} = ''; |
1771 |
|
} |
1772 |
|
} |
1773 |
|
if (trim($indexes) !== '') { |
1774 |
|
$columns .= ','; |