| @@ 2294-2296 (lines=3) @@ | ||
| 2291 | if (isset($field['type'])) { |
|
| 2292 | if (in_array((string) $field['type'], array("Integer", "BigInt", "SmallInt"))) { |
|
| 2293 | $default = " DEFAULT ".$field['default']; |
|
| 2294 | } elseif (in_array((string) $field['type'], array('DateTime', 'DateTimeTz')) && $field['default'] == $this->getCurrentTimestampSQL()) { |
|
| 2295 | $default = " DEFAULT ".$this->getCurrentTimestampSQL(); |
|
| 2296 | } elseif ((string) $field['type'] == 'Time' && $field['default'] == $this->getCurrentTimeSQL()) { |
|
| 2297 | $default = " DEFAULT ".$this->getCurrentTimeSQL(); |
|
| 2298 | } elseif ((string) $field['type'] == 'Date' && $field['default'] == $this->getCurrentDateSQL()) { |
|
| 2299 | $default = " DEFAULT ".$this->getCurrentDateSQL(); |
|
| @@ 1569-1571 (lines=3) @@ | ||
| 1566 | return " DEFAULT " . $field['default']; |
|
| 1567 | } |
|
| 1568 | ||
| 1569 | if (in_array((string) $field['type'], array('DateTime', 'DateTimeTz')) && $field['default'] == $this->getCurrentTimestampSQL()) { |
|
| 1570 | return " DEFAULT " . $this->getCurrentTimestampSQL(); |
|
| 1571 | } |
|
| 1572 | ||
| 1573 | if ((string) $field['type'] == 'Boolean') { |
|
| 1574 | return " DEFAULT '" . $this->convertBooleans($field['default']) . "'"; |
|