lib/Cake/Model/Datasource/Database/Mysql.php 1 location
|
@@ 522-525 (lines=4) @@
|
519 |
|
if (!$table || $table === $curTable) { |
520 |
|
$out .= 'ALTER TABLE ' . $this->fullTableName($curTable) . " \n"; |
521 |
|
foreach ($types as $type => $column) { |
522 |
|
if (isset($column['indexes'])) { |
523 |
|
$indexes[$type] = $column['indexes']; |
524 |
|
unset($column['indexes']); |
525 |
|
} |
526 |
|
if (isset($column['tableParameters'])) { |
527 |
|
$tableParameters[$type] = $column['tableParameters']; |
528 |
|
unset($column['tableParameters']); |
lib/Cake/Model/Datasource/Database/Postgres.php 1 location
|
@@ 513-516 (lines=4) @@
|
510 |
|
if (!$table || $table === $curTable) { |
511 |
|
$out .= 'ALTER TABLE ' . $this->fullTableName($curTable) . " \n"; |
512 |
|
foreach ($types as $type => $column) { |
513 |
|
if (isset($column['indexes'])) { |
514 |
|
$indexes[$type] = $column['indexes']; |
515 |
|
unset($column['indexes']); |
516 |
|
} |
517 |
|
switch ($type) { |
518 |
|
case 'add': |
519 |
|
foreach ($column as $field => $col) { |
lib/Cake/Model/Model.php 1 location
|
@@ 1415-1417 (lines=3) @@
|
1412 |
|
return $this->{$model}->getColumnType($column); |
1413 |
|
} |
1414 |
|
|
1415 |
|
if (isset($cols[$column]) && isset($cols[$column]['type'])) { |
1416 |
|
return $cols[$column]['type']; |
1417 |
|
} |
1418 |
|
|
1419 |
|
return null; |
1420 |
|
} |