Files
tomolino-processmaker/install/install.php
tomolimo 3b6349fd6b Start harmonization with GLPI framework
changed version to 3.3.0
2018-05-03 09:39:10 +02:00

22 lines
673 B
PHP

<?php
function processmaker_install(){
global $DB;
// installation from scratch
include_once(GLPI_ROOT."/plugins/processmaker/setup.php");
$info = plugin_version_processmaker();
switch($info['version']){
//case '3.3.0' :
// $version = '3.2.9';
// break;
default :
$version = $info['version'];
}
$DB->runFile(GLPI_ROOT . "/plugins/processmaker/install/mysql/$version-empty.sql");
// add configuration singleton
$query = "INSERT INTO `glpi_plugin_processmaker_configs` (`id`) VALUES (1);";
$DB->query( $query ) or die("error creating default record in glpi_plugin_processmaker_configs" . $DB->error());
}