| @@ 2293-2295 (lines=3) @@ | ||
| 2290 | return " DEFAULT " . $default; |
|
| 2291 | } |
|
| 2292 | ||
| 2293 | if (in_array($type, ['DateTime', 'DateTimeTz', 'DateTimeImmutable', 'DateTimeTzImmutable'], true) && $default === $this->getCurrentTimestampSQL()) { |
|
| 2294 | return " DEFAULT " . $this->getCurrentTimestampSQL(); |
|
| 2295 | } |
|
| 2296 | ||
| 2297 | if (in_array($type, ['Time', 'TimeImmutable'], true) && $default === $this->getCurrentTimeSQL()) { |
|
| 2298 | return " DEFAULT " . $this->getCurrentTimeSQL(); |
|
| @@ 1563-1565 (lines=3) @@ | ||
| 1560 | return " DEFAULT " . $field['default']; |
|
| 1561 | } |
|
| 1562 | ||
| 1563 | if (in_array($type, ['DateTime', 'DateTimeTz', 'DateTimeImmutable', 'DateTimeTzImmutable'], true) && $field['default'] === $this->getCurrentTimestampSQL()) { |
|
| 1564 | return " DEFAULT " . $this->getCurrentTimestampSQL(); |
|
| 1565 | } |
|
| 1566 | ||
| 1567 | if ($type === 'Boolean') { |
|
| 1568 | return " DEFAULT '" . $this->convertBooleans($field['default']) . "'"; |
|