ocsinventoryng icon indicating copy to clipboard operation
ocsinventoryng copied to clipboard

Error Installing OCSinventory Plugin SQL STRING

Open jmldsilva opened this issue 2 years ago • 1 comments

Hello, when installing this plugin I received this error:

  • Erro durante a consulta da base de dados: INSERT INTO glpi_notificationtemplates VALUES (NULL, 'Computers not imported', 'PluginOcsinventoryngNotimportedcomputer', NOW(), '', NULL, NOW()); - Erro é Incorrect integer value: 'Computers not imported' for column 'id' at row 1

  • The version of the plugin :2.0.2

  • The version of your GLPI: 10.0.3

jmldsilva avatar Oct 13 '22 14:10 jmldsilva

Adjust the column sequence in the glpi_notificationtemplates table:

ALTER TABLE glpi_notificationtemplates MODIFY COLUMN id int(10) unsigned NOT NULL AUTO_INCREMENT FIRST;
ALTER TABLE glpi_notificationtemplates MODIFY COLUMN name varchar(255) AFTER id;
ALTER TABLE glpi_notificationtemplates MODIFY COLUMN itemtype varchar(100) NOT NULL AFTER name;
ALTER TABLE glpi_notificationtemplates MODIFY COLUMN date_mod timestamp AFTER itemtype;
ALTER TABLE glpi_notificationtemplates MODIFY COLUMN comment text AFTER date_mod;
ALTER TABLE glpi_notificationtemplates MODIFY COLUMN css text AFTER comment;
ALTER TABLE glpi_notificationtemplates MODIFY COLUMN date_creation timestamp AFTER css;

joaoarquimedes avatar Jul 05 '24 16:07 joaoarquimedes