Merge branch 'release/3.2' of bitbucket.org:colosa/processmaker into feature/HOR-2440

This commit is contained in:
Paula Quispe
2017-02-09 12:50:46 -04:00
41 changed files with 579 additions and 396 deletions

View File

@@ -1401,6 +1401,10 @@ class workspaceTools
$arrayRegExpEngineSearch = array("/\)\s*TYPE\s*=\s*(InnoDB)/i", "/\)\s*TYPE\s*=\s*(MyISAM)/i","/SET\s*FOREIGN_KEY_CHECKS\s*=\s*0\s*;/");
$arrayRegExpEngineReplace = array(") ENGINE=\\1 DEFAULT CHARSET=utf8", ") ENGINE=\\1","SET FOREIGN_KEY_CHECKS=0;\nSET unique_checks=0;\nSET AUTOCOMMIT=0;");
//replace DEFINER
$script = preg_replace('/DEFINER=[^*]*/', '', file_get_contents($filename));
file_put_contents($filename, $script);
if (!$flag && !is_null($flagFunction)) {
//Replace TYPE by ENGINE
if( $versionBackupEngine == 1) {