Closed jcervantes-sipecom closed 2 years ago
Hello @jcervantes-sipecom Thank you for the report, there is an issue with the INT(11) UNSIGNED which should be INT UNSIGNED and not INT(11) The correct requests must be:
CREATE TABLE `glpi_plugin_mailanalyzer_message_id` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`message_id` VARCHAR(255) NOT NULL DEFAULT '0' COLLATE 'utf8_unicode_ci',
`tickets_id` INT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `message_id` (`message_id`) ,
INDEX `ticket_id` (`tickets_id`)
)
COLLATE='utf8_unicode_ci'
ENGINE=InnoDB;
ALTER TABLE `glpi_plugin_mailanalyzer_message_id`
CHANGE COLUMN `id` `id` INT UNSIGNED NOT NULL AUTO_INCREMENT FIRST,
CHANGE COLUMN `tickets_id` `tickets_id` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `message_id`;
Thank you, Regards, Tomolimo
Describe the bug
I'm getting this error when trying to update to 2.1.0:
It's because using plugin behaviours for changing the ticket_id format to ymd0001 it was necesary to change the column type to INT(11) UNSIGNED.
But in hook.php at line 10 and 33 there are these queries:
So it's necessary to change these queries to respectively:
After that the plugin can be installed.
To reproduce
Steps to reproduce the behavior:
Cannot alter glpi_plugin_mailanalyzer_message_id table! Out of range value for column 'tickets_id'
raised up