Merge pull request #342 from brayanpereyra/BUG-8451

BUG 8451 Don't work autoincrement for BIGINT in pmtables SOLVED
This commit is contained in:
julceslauhub
2012-07-19 07:02:53 -07:00

View File

@@ -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;
}
}