Skip to content

Commit 0f5bd42

Browse files
committed
Fix #63
Thanks
1 parent 8a054ad commit 0f5bd42

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

hook.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ function plugin_addressing_uninstall() {
154154
$tables = ["glpi_plugin_addressing_addressings",
155155
"glpi_plugin_addressing_configs",
156156
"glpi_plugin_addressing_filters",
157-
"glpi_plugin_addressing_pinginfos"];
157+
"glpi_plugin_addressing_pinginfos",
158+
"glpi_plugin_addressing_ipcomments"];
158159

159160
foreach ($tables as $table) {
160161
$migration->dropTable($table);

sql/update-2.9.1.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ CREATE TABLE `glpi_plugin_addressing_pinginfos`
22
(
33
`id` int(11) NOT NULL auto_increment,
44
`plugin_addressing_addressings_id` int(11) NOT NULL default '0',
5-
`ipname` varchar(255) collate utf8_unicode_ci default NULL,
5+
`ipname` varchar(255) collate utf8mb4_unicode_ci default NULL,
66
`ping_response` tinyint(1) NOT NULL default '0',
77
`ping_date` datetime DEFAULT NULL,
88
`items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)',
9-
`itemtype` varchar(100) collate utf8_unicode_ci COMMENT 'see .class.php file',
9+
`itemtype` varchar(100) collate utf8mb4_unicode_ci COMMENT 'see .class.php file',
1010
PRIMARY KEY (`id`),
1111
KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`),
1212
KEY `ipname` (`ipname`),
1313
KEY `ping_response` (`ping_response`),
1414
KEY `ping_date` (`ping_date`)
15-
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
15+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

0 commit comments

Comments
 (0)