From bbcbca67cdd525bbe4c8177594f81a08831d6c8e Mon Sep 17 00:00:00 2001 From: jennylee Date: Fri, 22 Nov 2013 13:54:30 -0400 Subject: [PATCH] BUG-13425 Cambiar el tamanio del campo PASSWORD, tabla AUTHENTICATION_SOURCE en la bd RBAC. Se realizo un cambio en el schema de la BD Rbac para que el campo Password de la tabla AUTHENTICATION_SOURCE tenga un tamanio mayor de 150 caracteres. Ademas de esto se realizaron cambios en la clase WsTools para poder hacer el cambio en el schema de la bd actual al realizar un upgrade. Please enter the commit message for your changes. Lines starting --- workflow/engine/classes/class.wsTools.php | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/workflow/engine/classes/class.wsTools.php b/workflow/engine/classes/class.wsTools.php index fe238ecdd..51af76379 100755 --- a/workflow/engine/classes/class.wsTools.php +++ b/workflow/engine/classes/class.wsTools.php @@ -337,7 +337,7 @@ class workspaceTools * @return database connection */ private function getDatabase($rbac = false) - { + { if (isset($this->db) && $this->db->isConnected()) { return $this->db; } @@ -381,11 +381,9 @@ class workspaceTools * * @return array with the database schema */ - public function getSchema($rbac = null) + public function getSchema($rbac = false) { - - - if($rbac == null){ + if($rbac == false){ $oDataBase = $this->getDatabase(); } else { $oDataBase = $this->getDatabase(true); @@ -673,11 +671,7 @@ class workspaceTools throw new Exception("Only MySQL is supported"); } - if($rbac == true) { - $workspaceSchema = $this->getSchema(true); - } else { - $workspaceSchema = $this->getSchema(); - } + $workspaceSchema = $this->getSchema($rbac); $changes = System::compareSchema($workspaceSchema, $schema); @@ -691,11 +685,9 @@ class workspaceTools return $changed; } } - if($rbac == true) { - $oDataBase = $this->getDatabaseRbac(); - } else { - $oDataBase = $this->getDatabase(); - } + + $oDataBase = $this->getDatabase($rbac); + $oDataBase->iFetchType = MYSQL_NUM; $oDataBase->logQuery(count($changes));