[DDC-1290] Allow smallint and bigint for version fields
This commit is contained in:
parent
2a59da1f03
commit
cbf210605a
@ -1800,7 +1800,7 @@ class ClassMetadataInfo implements ClassMetadata
|
||||
$this->versionField = $mapping['fieldName'];
|
||||
|
||||
if ( ! isset($mapping['default'])) {
|
||||
if ($mapping['type'] == 'integer') {
|
||||
if (in_array($mapping['type'], array('integer', 'bigint', 'smallint'))) {
|
||||
$mapping['default'] = 1;
|
||||
} else if ($mapping['type'] == 'datetime') {
|
||||
$mapping['default'] = 'CURRENT_TIMESTAMP';
|
||||
|
Loading…
Reference in New Issue
Block a user