| @@ 2289-2291 (lines=3) @@ | ||
| 2286 | ||
| 2287 | $type = (string) $field['type']; |
|
| 2288 | ||
| 2289 | if (in_array($type, ["Integer", "BigInt", "SmallInt"], true)) { |
|
| 2290 | return " DEFAULT " . $default; |
|
| 2291 | } |
|
| 2292 | ||
| 2293 | if (in_array($type, ['DateTime', 'DateTimeTz', 'DateTimeImmutable', 'DateTimeTzImmutable'], true) && $default === $this->getCurrentTimestampSQL()) { |
|
| 2294 | return " DEFAULT " . $this->getCurrentTimestampSQL(); |
|
| @@ 1559-1561 (lines=3) @@ | ||
| 1556 | ||
| 1557 | $type = (string) $field['type']; |
|
| 1558 | ||
| 1559 | if (in_array($type, ['Integer', 'BigInt', 'SmallInt'], true)) { |
|
| 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(); |
|