BUG-15479 ProcessMaker en una sola Base de Datos
Comandos unify-database y upgrade
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user