Files
tomolino-processmaker/install/install.php
tomolimo 96c6e9ba6f Version to 3.5.1
Compatible with GLPI 9.3
2019-05-21 10:47:15 +02:00

13 lines
414 B
PHP

<?php
function processmaker_install() {
global $DB;
// installation from scratch
$DB->runFile(GLPI_ROOT . "/plugins/processmaker/install/mysql/processmaker-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());
}