Skip to content

Commit

Permalink
clean 3.0.5 empty install
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurMinfotel committed Apr 25, 2024
1 parent 1829ff3 commit de8a925
Show file tree
Hide file tree
Showing 2 changed files with 241 additions and 240 deletions.
3 changes: 2 additions & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function plugin_resources_install()
if (!$DB->tableExists("glpi_plugin_resources_resources")
&& !$DB->tableExists("glpi_plugin_resources_employments")) {
$install = true;
$DB->runFile(PLUGIN_RESOURCES_DIR . "/install/sql/empty-3.0..sql");
$DB->runFile(PLUGIN_RESOURCES_DIR . "/install/sql/empty-3.0.5.sql");

$query = "INSERT INTO `glpi_plugin_resources_contracttypes` ( `id`, `name`, `entities_id`, `is_recursive`)
VALUES (1, '" . __('Long term contract', 'resources') . "', 0, 1)";
Expand Down Expand Up @@ -703,6 +703,7 @@ function plugin_resources_uninstall()
"glpi_plugin_resources_leavingdetails",
"glpi_plugin_resources_workprofiles",
"glpi_plugin_resources_leavinginformations",
'glpi_plugin_resources_candidateorigins',
];

foreach ($tables as $table) {
Expand Down
Loading

0 comments on commit de8a925

Please sign in to comment.