Merged in release/3.3 (pull request #6593)
Updating branch release/3.3.1 with the last fixes on release/3.2.3, second round Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -3791,11 +3791,13 @@ class Processes
|
|||||||
* Get Task User rows from an array of data
|
* Get Task User rows from an array of data
|
||||||
*
|
*
|
||||||
* @param array $group
|
* @param array $group
|
||||||
* @return array $aStepTrigger
|
*
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function createGroupRow($group)
|
public function createGroupRow($group)
|
||||||
{
|
{
|
||||||
foreach ($group as $key => $row) {
|
foreach ($group as $key => $row) {
|
||||||
|
$groupInfo = [];
|
||||||
$groupWf = new Groupwf();
|
$groupWf = new Groupwf();
|
||||||
if ($groupWf->GroupwfExists($row['GRP_UID'])) {
|
if ($groupWf->GroupwfExists($row['GRP_UID'])) {
|
||||||
$groupInfo = $groupWf->Load($row['GRP_UID']);
|
$groupInfo = $groupWf->Load($row['GRP_UID']);
|
||||||
|
|||||||
@@ -900,13 +900,14 @@ class InstallerModule extends Controller
|
|||||||
file_exists(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerAppDelegationUpdate.sql') &&
|
file_exists(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerAppDelegationUpdate.sql') &&
|
||||||
file_exists(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerApplicationUpdate.sql') &&
|
file_exists(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerApplicationUpdate.sql') &&
|
||||||
file_exists(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerApplicationDelete.sql') &&
|
file_exists(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerApplicationDelete.sql') &&
|
||||||
|
file_exists(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerSubApplicationInsert.sql') &&
|
||||||
file_exists(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerContentUpdate.sql')) {
|
file_exists(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerContentUpdate.sql')) {
|
||||||
DB::connection(self::CONNECTION_INSTALL)->raw(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerAppDelegationInsert.sql'));
|
DB::connection(self::CONNECTION_INSTALL)->unprepared(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerAppDelegationInsert.sql'));
|
||||||
DB::connection(self::CONNECTION_INSTALL)->raw(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerAppDelegationUpdate.sql'));
|
DB::connection(self::CONNECTION_INSTALL)->unprepared(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerAppDelegationUpdate.sql'));
|
||||||
DB::connection(self::CONNECTION_INSTALL)->raw(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerApplicationUpdate.sql'));
|
DB::connection(self::CONNECTION_INSTALL)->unprepared(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerApplicationUpdate.sql'));
|
||||||
DB::connection(self::CONNECTION_INSTALL)->raw(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerApplicationDelete.sql'));
|
DB::connection(self::CONNECTION_INSTALL)->unprepared(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerApplicationDelete.sql'));
|
||||||
DB::connection(self::CONNECTION_INSTALL)->raw(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerSubApplicationInsert.sql'));
|
DB::connection(self::CONNECTION_INSTALL)->unprepared(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerSubApplicationInsert.sql'));
|
||||||
DB::connection(self::CONNECTION_INSTALL)->raw(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerContentUpdate.sql'));
|
DB::connection(self::CONNECTION_INSTALL)->unprepared(file_get_contents(PATH_HOME . 'engine/methods/setup/setupSchemas/triggerContentUpdate.sql'));
|
||||||
|
|
||||||
DB::connection(self::CONNECTION_INSTALL)
|
DB::connection(self::CONNECTION_INSTALL)
|
||||||
->table('CONFIGURATION')
|
->table('CONFIGURATION')
|
||||||
@@ -954,71 +955,7 @@ class InstallerModule extends Controller
|
|||||||
file_put_contents(FILE_PATHS_INSTALLED, $dbText);
|
file_put_contents(FILE_PATHS_INSTALLED, $dbText);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// for new env conf handling
|
||||||
* AppCacheView Build
|
|
||||||
*/
|
|
||||||
define('HASH_INSTALLATION', $h);
|
|
||||||
define('SYSTEM_HASH', $sh);
|
|
||||||
define('PATH_DB', $pathShared . 'sites' . PATH_SEP);
|
|
||||||
define('SYS_SYS', $workspace);
|
|
||||||
config(['system.workspace' => $workspace]);
|
|
||||||
|
|
||||||
System::setConnectionConfig(
|
|
||||||
'mysql',
|
|
||||||
$db_host,
|
|
||||||
$wf_workspace,
|
|
||||||
$wfGrantUser,
|
|
||||||
$wfPass,
|
|
||||||
$db_host,
|
|
||||||
$wf_workspace,
|
|
||||||
$wfGrantUser,
|
|
||||||
$wfPass,
|
|
||||||
$db_host,
|
|
||||||
$wf_workspace,
|
|
||||||
$wfGrantUser,
|
|
||||||
$wfPass);
|
|
||||||
|
|
||||||
require_once('propel/Propel.php');
|
|
||||||
|
|
||||||
Propel::init(PATH_CORE . 'config/databases.php');
|
|
||||||
$con = Propel::getConnection('workflow');
|
|
||||||
|
|
||||||
require_once('classes/model/AppCacheView.php');
|
|
||||||
$lang = 'en';
|
|
||||||
|
|
||||||
//setup the appcacheview object, and the path for the sql files
|
|
||||||
$appCache = new AppCacheView();
|
|
||||||
|
|
||||||
$appCache->setPathToAppCacheFiles(PATH_METHODS . 'setup' . PATH_SEP . 'setupSchemas' . PATH_SEP);
|
|
||||||
|
|
||||||
//Update APP_DELEGATION.DEL_LAST_INDEX data
|
|
||||||
$res = $appCache->updateAppDelegationDelLastIndex($lang, true);
|
|
||||||
|
|
||||||
//APP_DELEGATION INSERT
|
|
||||||
$res = $appCache->triggerAppDelegationInsert($lang, true);
|
|
||||||
|
|
||||||
//APP_DELEGATION Update
|
|
||||||
$res = $appCache->triggerAppDelegationUpdate($lang, true);
|
|
||||||
|
|
||||||
//APPLICATION UPDATE
|
|
||||||
$res = $appCache->triggerApplicationUpdate($lang, true);
|
|
||||||
|
|
||||||
//APPLICATION DELETE
|
|
||||||
$res = $appCache->triggerApplicationDelete($lang, true);
|
|
||||||
|
|
||||||
//SUB_APPLICATION INSERT
|
|
||||||
$res = $appCache->triggerSubApplicationInsert($lang, false);
|
|
||||||
|
|
||||||
//CONTENT UPDATE
|
|
||||||
$res = $appCache->triggerContentUpdate($lang, true);
|
|
||||||
|
|
||||||
//build using the method in AppCacheView Class
|
|
||||||
$res = $appCache->fillAppCacheView($lang);
|
|
||||||
|
|
||||||
//end AppCacheView Build
|
|
||||||
|
|
||||||
|
|
||||||
//erik: for new env conf handling
|
|
||||||
$envFile = PATH_CONFIG . 'env.ini';
|
$envFile = PATH_CONFIG . 'env.ini';
|
||||||
|
|
||||||
// getting configuration from env.ini
|
// getting configuration from env.ini
|
||||||
|
|||||||
@@ -550,7 +550,7 @@ class Installer
|
|||||||
*/
|
*/
|
||||||
private function runTrigger($query, $description = '', $connection = self::CONNECTION_INSTALL)
|
private function runTrigger($query, $description = '', $connection = self::CONNECTION_INSTALL)
|
||||||
{
|
{
|
||||||
$this->run_query($query, $description, $connection, 'RAW');
|
$this->run_query($query, $description, $connection, 'UNPREPARED');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -573,6 +573,9 @@ class Installer
|
|||||||
case 'RAW':
|
case 'RAW':
|
||||||
DB::connection($connection)->raw($query);
|
DB::connection($connection)->raw($query);
|
||||||
break;
|
break;
|
||||||
|
case 'UNPREPARED':
|
||||||
|
DB::connection($connection)->unprepared($query);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (QueryException $exception) {
|
} catch (QueryException $exception) {
|
||||||
|
|||||||
Reference in New Issue
Block a user