Upgrade PHP files
This commit is contained in:
@@ -4,9 +4,7 @@ use Illuminate\Database\QueryException;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use ProcessMaker\BusinessModel\Process as BmProcess;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
use ProcessMaker\ChangeLog\ChangeLog;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
use ProcessMaker\BusinessModel\TaskSchedulerBM;
|
||||
use ProcessMaker\BusinessModel\WebEntry;
|
||||
use ProcessMaker\Core\Installer;
|
||||
@@ -328,12 +326,10 @@ class WorkspaceTools
|
||||
$this->clearDynContentHistoryData(false, $keepDynContent);
|
||||
CLI::logging("* End cleaning DYN_CONTENT in APP_HISTORY...(Completed on " . (microtime(true) - $start) . " seconds)\n");
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
CLI::logging("* Start migrating history data...\n");
|
||||
$start = microtime(true);
|
||||
$this->migrateAppHistoryToAppDataChangeLog(true);
|
||||
CLI::logging("* End migrating history data...(Completed on " . (microtime(true) - $start) . " seconds)\n");
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
CLI::logging("* Start migrating and populating indexing for avoiding the use of table APP_CACHE_VIEW...\n");
|
||||
$start = microtime(true);
|
||||
@@ -1135,9 +1131,7 @@ class WorkspaceTools
|
||||
$this->checkSchedulerTable();
|
||||
$this->checkSequenceNumber();
|
||||
$this->migrateIteeToDummytask($this->name);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$this->upgradeAuditLog($this->name);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
//There records in table "EMAIL_SERVER"
|
||||
$criteria = new Criteria("workflow");
|
||||
@@ -1437,13 +1431,9 @@ class WorkspaceTools
|
||||
if (file_exists(PATH_CORE . 'data' . PATH_SEP . 'check.data')) {
|
||||
$checkData = unserialize(file_get_contents(PATH_CORE . 'data' . PATH_SEP . 'check.data'));
|
||||
if (is_array($checkData)) {
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$licensedFeatures = PMLicensedFeatures::getSingleton();
|
||||
$checkData = $licensedFeatures->addNewFeatures($checkData);
|
||||
|
||||
$catalog = new Catalog();
|
||||
$checkData = $catalog->registerRows($checkData);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
foreach ($checkData as $checkThis) {
|
||||
$this->updateThisRegistry($checkThis);
|
||||
}
|
||||
@@ -2257,12 +2247,10 @@ class WorkspaceTools
|
||||
$workspace->clearDynContentHistoryData(false, $keepDynContent);
|
||||
CLI::logging("* End cleaning DYN_CONTENT in APP_HISTORY...(Completed on " . (microtime(true) - $start) . " seconds)\n");
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
CLI::logging("* Start migrating history data...\n");
|
||||
$start = microtime(true);
|
||||
$workspace->migrateAppHistoryToAppDataChangeLog(false);
|
||||
CLI::logging("* End migrating history data...(Completed on " . (microtime(true) - $start) . " seconds)\n");
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
CLI::logging("* Start migrating and populating indexing for avoiding the use of table APP_CACHE_VIEW...\n");
|
||||
$start = microtime(true);
|
||||
@@ -2472,14 +2460,9 @@ class WorkspaceTools
|
||||
public function changeHashPassword($workspace, $response)
|
||||
{
|
||||
$this->initPropel(true);
|
||||
$licensedFeatures = PMLicensedFeatures::getSingleton();
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if ($licensedFeatures->verifyfeature('95OY24wcXpEMzIyRmlNSnF0STNFSHJzMG9wYTJKekpLNmY2ZmRCeGtuZk5oUDloaUNhUGVjTDJBPT0=')) {
|
||||
EnterpriseClass::setHashPassword($response);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
EnterpriseClass::setHashPassword($response);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -4446,7 +4429,6 @@ class WorkspaceTools
|
||||
$con->commit();
|
||||
|
||||
// Populating TAS.TAS_TITLE with BPMN_EVENT.EVN_NAME
|
||||
/*----------------------------------********---------------------------------*/
|
||||
CLI::logging("-> Populating TASK.TAS_TITLE with BPMN_EVENT.EVN_NAME\n");
|
||||
$con->begin();
|
||||
$rs = $stmt->executeQuery("UPDATE TASK
|
||||
@@ -4465,7 +4447,6 @@ class WorkspaceTools
|
||||
)
|
||||
AND EVENT.EVN_NAME != ''");
|
||||
$con->commit();
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
// Populating PRO_ID, USR_ID IN LIST TABLES
|
||||
CLI::logging("-> Populating PRO_ID, USR_ID at LIST_* \n");
|
||||
@@ -4836,7 +4817,6 @@ class WorkspaceTools
|
||||
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
/**
|
||||
* Migrate the contents of table APP_HISTORY to table APP_DATA_CHANGE_LOG.
|
||||
*
|
||||
@@ -4963,7 +4943,6 @@ class WorkspaceTools
|
||||
$conf->aConfig = ['updated' => true];
|
||||
$conf->saveConfig('MIGRATED_APP_HISTORY', 'history');
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
/**
|
||||
* Upgrade APP_ASSIGN_SELF_SERVICE_VALUE_GROUP and GROUP_USER tables.
|
||||
|
||||
Reference in New Issue
Block a user