ocsinventoryng icon indicating copy to clipboard operation
ocsinventoryng copied to clipboard

OCS Inventory NG ocsinventoryng v 1.7.3 table manquante

Open jlb5980 opened this issue 3 years ago • 4 comments

Bonjour nous avons dans les logs une errreur concernant la table glpi_plugin_ocsinventoryng_osinstalls

SELECT glpi_plugin_ocsinventoryng_osinstalls.id FROM glpi_plugin_ocsinventoryng_osinstalls WHERE computers_id = '352243' Error: Table 'glpi.glpi_plugin_ocsinventoryng_osinstalls' doesn't exist

Cette table effectivement n'existe pas. Quelle peux être est la solution à ce probléme ?

Merci plugin ocsinventory 1.7.3 glpi9.5.6

jlb5980 avatar Jan 25 '22 16:01 jlb5980

You can launch this :

CREATE TABLE `glpi_plugin_ocsinventoryng_osinstalls` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `computers_id` INT(11) NOT NULL DEFAULT '0',
  `build_version` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `install_date` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codeset` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `countrycode` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `oslanguage` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `curtimezone` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `locale` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `computers_id` (`computers_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

tsmr avatar Jan 25 '22 16:01 tsmr

ok merci pour votre réponse très rapide. je suppose que c'est la même réponse pour la table glpi_plugin_ocsinventoryng_networkshares ?
cordialement

jlb5980 avatar Jan 25 '22 16:01 jlb5980

Oui :)

CREATE TABLE `glpi_plugin_ocsinventoryng_networkshares` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `computers_id` INT(11) NOT NULL DEFAULT '0',
  `drive` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `path` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `size` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `freespace` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `quota` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `computers_id` (`computers_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

tsmr avatar Jan 25 '22 16:01 tsmr

Merci pour votre retour

jlb5980 avatar Feb 25 '22 08:02 jlb5980