Skip to content

Commit

Permalink
Merge branch 'odbc'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKryvets committed Dec 23, 2016
2 parents b1451cd + f6531af commit e64c123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"php": ">=5.4",
"ext-pdo": "*",
"doctrine/collections": "~1.2",
"doctrine/dbal": ">=2.5-dev,<2.6-dev",
"doctrine/dbal": "dev-odbc",
"doctrine/instantiator": "~1.0.1",
"doctrine/common": ">=2.5-dev,<2.6-dev",
"doctrine/cache": "~1.4",
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2988,7 +2988,7 @@ public function setVersionMapping(array &$mapping)
$this->versionField = $mapping['fieldName'];

if ( ! isset($mapping['default'])) {
if (in_array($mapping['type'], array('integer', 'bigint', 'smallint'))) {
if (in_array($mapping['type'], array('integer', 'bigint', 'smallint', 'timestamp'))) {
$mapping['default'] = 1;
} else if ($mapping['type'] == 'datetime') {
$mapping['default'] = 'CURRENT_TIMESTAMP';
Expand Down

0 comments on commit e64c123

Please sign in to comment.