BUG 8451 Don't work autoincrement for BIGINT in pmtables SOLVED
I add autoincrement for TINYINT SMALLINT INTEGER BIGINT in Pmtables
This commit is contained in:
@@ -259,7 +259,12 @@ class pmTablesProxy extends HttpProxyController
|
||||
|
||||
// VALIDATIONS
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user