lib/Doctrine/DBAL/Platforms/AbstractPlatform.php 1 location
|
@@ 2290-2292 (lines=3) @@
|
2287 |
|
$default = " DEFAULT ".$this->getCurrentTimeSQL(); |
2288 |
|
} elseif ((string) $field['type'] == 'Date' && $field['default'] == $this->getCurrentDateSQL()) { |
2289 |
|
$default = " DEFAULT ".$this->getCurrentDateSQL(); |
2290 |
|
} elseif ((string) $field['type'] == 'Boolean') { |
2291 |
|
$default = " DEFAULT '" . $this->convertBooleans($field['default']) . "'"; |
2292 |
|
} |
2293 |
|
} |
2294 |
|
} |
2295 |
|
|
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php 1 location
|
@@ 1565-1567 (lines=3) @@
|
1562 |
|
return " DEFAULT " . $this->getCurrentTimestampSQL(); |
1563 |
|
} |
1564 |
|
|
1565 |
|
if ((string) $field['type'] == 'Boolean') { |
1566 |
|
return " DEFAULT '" . $this->convertBooleans($field['default']) . "'"; |
1567 |
|
} |
1568 |
|
|
1569 |
|
return " DEFAULT '" . $field['default'] . "'"; |
1570 |
|
} |