lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php 1 location
|
@@ 456-463 (lines=8) @@
|
| 453 |
|
/** |
| 454 |
|
* {@inheritDoc} |
| 455 |
|
*/ |
| 456 |
|
public function getDateTimeTypeDeclarationSQL(array $fieldDeclaration) |
| 457 |
|
{ |
| 458 |
|
if (isset($fieldDeclaration['version']) && $fieldDeclaration['version'] == true) { |
| 459 |
|
return 'TIMESTAMP'; |
| 460 |
|
} |
| 461 |
|
|
| 462 |
|
return 'DATETIME'; |
| 463 |
|
} |
| 464 |
|
|
| 465 |
|
/** |
| 466 |
|
* {@inheritDoc} |
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php 1 location
|
@@ 280-287 (lines=8) @@
|
| 277 |
|
/** |
| 278 |
|
* {@inheritDoc} |
| 279 |
|
*/ |
| 280 |
|
public function getDateTimeTypeDeclarationSQL(array $fieldDeclaration) |
| 281 |
|
{ |
| 282 |
|
if (isset($fieldDeclaration['version']) && $fieldDeclaration['version'] == true) { |
| 283 |
|
return 'TIMESTAMP'; |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
return 'DATETIME'; |
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
/** |
| 290 |
|
* {@inheritDoc} |