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:
Brayan Osmar Pereyra Suxo
2012-07-19 09:53:18 -04:00
parent 42b0ef4a58
commit 065754f56e

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