BUG-15479 ProcessMaker en una sola Base de Datos

Comandos unify-database y upgrade
This commit is contained in:
norahmollo
2014-09-04 16:28:17 -04:00
parent e5118e5f93
commit 81318f4c67
32 changed files with 458 additions and 395 deletions

View File

@@ -814,6 +814,25 @@ class System
return $aSchema;
}
/**
* Returns tables name without prefix RBAC
*
* @param array $aOldSchema original schema array
* @return array with tablesToRename
*/
public static function verifyRbacSchema ($aOldSchema)
{
$aChanges = array ();
foreach ($aOldSchema as $sTableName => $aColumns) {
if(substr($sTableName, 0,4) != 'RBAC') {
$aChanges[] = $sTableName;
}
}
return $aChanges;
}
/**
* Returns the difference between two schema arrays
*