diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8ca2a31..9868e1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,8 @@ on: # Sequence of patterns matched against refs/tags tags: - '*.*.*' # Push events to matching ex:20.15.10 - +permissions: + contents: write name: Create release with tag env: TAG_VALUE: ${GITHUB_REF/refs\/tags\//} diff --git a/hook.php b/hook.php index 8832cca..acfe86e 100644 --- a/hook.php +++ b/hook.php @@ -38,7 +38,7 @@ function plugin_vip_install() { $tables = ["glpi_plugin_vip_tickets"]; foreach ($tables as $table) { - $DB->query("DROP TABLE IF EXISTS `$table`;"); + $DB->dropTable($table); } } @@ -65,7 +65,7 @@ function plugin_vip_uninstall() { "glpi_plugin_vip_tickets"]; foreach ($tables as $table) - $DB->query("DROP TABLE IF EXISTS `$table`;"); + $DB->dropTable($table); $tables_glpi = ["glpi_displaypreferences", "glpi_documents_items",