From 065754f56e588ae9917e61d8783a7429fcafd31a Mon Sep 17 00:00:00 2001 From: Brayan Osmar Pereyra Suxo Date: Thu, 19 Jul 2012 09:53:18 -0400 Subject: [PATCH] BUG 8451 Don't work autoincrement for BIGINT in pmtables SOLVED I add autoincrement for TINYINT SMALLINT INTEGER BIGINT in Pmtables --- workflow/engine/controllers/pmTablesProxy.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/workflow/engine/controllers/pmTablesProxy.php b/workflow/engine/controllers/pmTablesProxy.php index d79b5fa9e..2d8b522fb 100755 --- a/workflow/engine/controllers/pmTablesProxy.php +++ b/workflow/engine/controllers/pmTablesProxy.php @@ -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; } }