Merge pull request #342 from brayanpereyra/BUG-8451
BUG 8451 Don't work autoincrement for BIGINT in pmtables SOLVED
This commit is contained in:
@@ -259,7 +259,12 @@ class pmTablesProxy extends HttpProxyController
|
|||||||
|
|
||||||
// VALIDATIONS
|
// VALIDATIONS
|
||||||
if ($columns[$i]->field_autoincrement) {
|
if ($columns[$i]->field_autoincrement) {
|
||||||
if ($columns[$i]->field_type !== 'INTEGER') {
|
$typeCol = $columns[$i]->field_type;
|
||||||
|
if (! ($typeCol === 'INTEGER' ||
|
||||||
|
$typeCol === 'TINYINT' ||
|
||||||
|
$typeCol === 'SMALLINT' ||
|
||||||
|
$typeCol === 'BIGINT')
|
||||||
|
) {
|
||||||
$columns[$i]->field_autoincrement = false;
|
$columns[$i]->field_autoincrement = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user