empty-1.8.0.sql 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. DROP TABLE IF EXISTS `glpi_plugin_archires_locationqueries`;
  2. CREATE TABLE `glpi_plugin_archires_locationqueries` (
  3. `id` int(11) NOT NULL auto_increment,
  4. `entities_id` int(11) NOT NULL default '0',
  5. `name` varchar(255) collate utf8_unicode_ci default NULL,
  6. `locations_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_locations (id)',
  7. `child` smallint(6) NOT NULL default '0',
  8. `networks_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)',
  9. `states_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_states (id)',
  10. `groups_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_groups (id)',
  11. `plugin_archires_views_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_archires_views (id)',
  12. `vlans_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_vlans (id)',
  13. `notepad` longtext collate utf8_unicode_ci,
  14. `is_deleted` tinyint(1) NOT NULL default '0',
  15. PRIMARY KEY (`id`),
  16. KEY `name` (`name`),
  17. KEY `entities_id` (`entities_id`),
  18. KEY `locations_id` (`locations_id`),
  19. KEY `networks_id` (`networks_id`),
  20. KEY `groups_id` (`groups_id`),
  21. KEY `plugin_archires_views_id` (`plugin_archires_views_id`),
  22. KEY `states_id` (`states_id`),
  23. KEY `vlans_id` (`vlans_id`),
  24. KEY `is_deleted` (`is_deleted`)
  25. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  26. DROP TABLE IF EXISTS `glpi_plugin_archires_networkequipmentqueries`;
  27. CREATE TABLE `glpi_plugin_archires_networkequipmentqueries` (
  28. `id` int(11) NOT NULL auto_increment,
  29. `entities_id` int(11) NOT NULL default '0',
  30. `name` varchar(255) collate utf8_unicode_ci default NULL,
  31. `networkequipments_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networkequipments (id)',
  32. `networks_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)',
  33. `states_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_states (id)',
  34. `groups_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_groups (id)',
  35. `plugin_archires_views_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_archires_views (id)',
  36. `vlans_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_vlans (id)',
  37. `notepad` longtext collate utf8_unicode_ci,
  38. `is_deleted` tinyint(1) NOT NULL default '0',
  39. PRIMARY KEY (`id`),
  40. KEY `name` (`name`),
  41. KEY `entities_id` (`entities_id`),
  42. KEY `networkequipments_id` (`networkequipments_id`),
  43. KEY `networks_id` (`networks_id`),
  44. KEY `groups_id` (`groups_id`),
  45. KEY `plugin_archires_views_id` (`plugin_archires_views_id`),
  46. KEY `states_id` (`states_id`),
  47. KEY `vlans_id` (`vlans_id`),
  48. KEY `is_deleted` (`is_deleted`)
  49. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  50. DROP TABLE IF EXISTS `glpi_plugin_archires_appliancequeries`;
  51. CREATE TABLE `glpi_plugin_archires_appliancequeries` (
  52. `id` int(11) NOT NULL auto_increment,
  53. `entities_id` int(11) NOT NULL default '0',
  54. `name` varchar(255) collate utf8_unicode_ci default NULL,
  55. `appliances_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_appliances (id)',
  56. `networks_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)',
  57. `states_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_states (id)',
  58. `groups_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_groups (id)',
  59. `plugin_archires_views_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_archires_views (id)',
  60. `vlans_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_vlans (id)',
  61. `notepad` longtext collate utf8_unicode_ci,
  62. `is_deleted` tinyint(1) NOT NULL default '0',
  63. PRIMARY KEY (`id`),
  64. KEY `name` (`name`),
  65. KEY `entities_id` (`entities_id`),
  66. KEY `appliances_id` (`appliances_id`),
  67. KEY `networks_id` (`networks_id`),
  68. KEY `groups_id` (`groups_id`),
  69. KEY `plugin_archires_views_id` (`plugin_archires_views_id`),
  70. KEY `states_id` (`states_id`),
  71. KEY `vlans_id` (`vlans_id`),
  72. KEY `is_deleted` (`is_deleted`)
  73. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  74. DROP TABLE IF EXISTS `glpi_plugin_archires_imageitems`;
  75. CREATE TABLE `glpi_plugin_archires_imageitems` (
  76. `id` int(11) NOT NULL auto_increment,
  77. `type` int(11) NOT NULL default '0',
  78. `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
  79. `img` VARCHAR( 50 ) collate utf8_unicode_ci NOT NULL,
  80. PRIMARY KEY (`id`)
  81. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  82. DROP TABLE IF EXISTS `glpi_plugin_archires_querytypes`;
  83. CREATE TABLE `glpi_plugin_archires_querytypes` (
  84. `id` int(11) NOT NULL auto_increment,
  85. `querytype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'RELATION to the 3 type of archires (type)',
  86. `type` int(11) NOT NULL default '0',
  87. `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file',
  88. `plugin_archires_queries_id` int(11) NOT NULL default '0' COMMENT 'RELATION to the 3 queries tables (id)',
  89. PRIMARY KEY (`id`),
  90. KEY `plugin_archires_queries_id` (`plugin_archires_queries_id`),
  91. KEY `type` (`type`),
  92. KEY `querytype` (`querytype`),
  93. KEY `itemtype` (`itemtype`)
  94. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  95. DROP TABLE IF EXISTS `glpi_plugin_archires_networkinterfacecolors`;
  96. CREATE TABLE `glpi_plugin_archires_networkinterfacecolors` (
  97. `id` int(11) NOT NULL auto_increment,
  98. `networkinterfaces_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networkinterfaces (id)',
  99. `color` VARCHAR( 50 ) collate utf8_unicode_ci NOT NULL,
  100. PRIMARY KEY (`id`),
  101. KEY `networkinterfaces_id` (`networkinterfaces_id`)
  102. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  103. DROP TABLE IF EXISTS `glpi_plugin_archires_statecolors`;
  104. CREATE TABLE `glpi_plugin_archires_statecolors` (
  105. `id` int(11) NOT NULL auto_increment,
  106. `states_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_states (id)',
  107. `color` VARCHAR( 50 ) collate utf8_unicode_ci NOT NULL,
  108. PRIMARY KEY (`id`),
  109. KEY `states_id` (`states_id`)
  110. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  111. DROP TABLE IF EXISTS `glpi_plugin_archires_vlancolors`;
  112. CREATE TABLE `glpi_plugin_archires_vlancolors` (
  113. `id` int(11) NOT NULL auto_increment,
  114. `vlans_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_vlans (id)',
  115. `color` VARCHAR( 50 ) collate utf8_unicode_ci NOT NULL,
  116. PRIMARY KEY (`id`),
  117. KEY `vlans_id` (`vlans_id`)
  118. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  119. DROP TABLE IF EXISTS `glpi_plugin_archires_views`;
  120. CREATE TABLE `glpi_plugin_archires_views` (
  121. `id` int(11) NOT NULL auto_increment,
  122. `entities_id` int(11) NOT NULL default '0',
  123. `name` varchar(255) collate utf8_unicode_ci default NULL,
  124. `computer` smallint(6) NOT NULL default '0',
  125. `networking` smallint(6) NOT NULL default '0',
  126. `printer` smallint(6) NOT NULL default '0',
  127. `peripheral` smallint(6) NOT NULL default '0',
  128. `phone` smallint(6) NOT NULL default '0',
  129. `display_ports` smallint(6) NOT NULL default '0',
  130. `display_ip` smallint(6) NOT NULL default '0',
  131. `display_type` smallint(6) NOT NULL default '0',
  132. `display_state` smallint(6) NOT NULL default '0',
  133. `display_location` smallint(6) NOT NULL default '0',
  134. `display_entity` smallint(6) NOT NULL default '0',
  135. `engine` smallint(6) NOT NULL default '0',
  136. `format` smallint(6) NOT NULL default '0',
  137. `color` smallint(6) NOT NULL default '0',
  138. `is_deleted` tinyint(1) NOT NULL default '0',
  139. PRIMARY KEY (`ID`),
  140. KEY `name` (`name`),
  141. KEY `entities_id` (`entities_id`),
  142. KEY `is_deleted` (`is_deleted`)
  143. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  144. INSERT INTO `glpi_plugin_archires_views` ( `id`,`entities_id`,`name`, `computer` , `networking`, `printer`, `peripheral`, `phone`,`display_ports`,`display_ip`,`display_type`,`display_state`,`display_location`,`display_entity`,`engine`,`format`) VALUES ('1','0','default','1', '1','1','1','1','0','0','0','0','0','0','0','1');
  145. DROP TABLE IF EXISTS `glpi_plugin_archires_profiles`;
  146. CREATE TABLE `glpi_plugin_archires_profiles` (
  147. `id` int(11) NOT NULL auto_increment,
  148. `profiles_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_profiles (id)',
  149. `archires` char(1) collate utf8_unicode_ci default NULL,
  150. PRIMARY KEY (`id`),
  151. KEY `profiles_id` (`profiles_id`)
  152. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  153. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresLocationQuery','2','1','0');
  154. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresLocationQuery','3','2','0');
  155. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresLocationQuery','4','3','0');
  156. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresLocationQuery','5','4','0');
  157. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresLocationQuery','6','5','0');
  158. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresLocationQuery','7','6','0');
  159. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresLocationQuery','8','7','0');
  160. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresNetworkEquipmentQuery','2','1','0');
  161. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresNetworkEquipmentQuery','3','2','0');
  162. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresNetworkEquipmentQuery','4','3','0');
  163. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresNetworkEquipmentQuery','5','4','0');
  164. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresNetworkEquipmentQuery','6','5','0');
  165. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresNetworkEquipmentQuery','7','6','0');
  166. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresApplianceQuery','2','1','0');
  167. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresApplianceQuery','3','2','0');
  168. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresApplianceQuery','4','3','0');
  169. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresApplianceQuery','5','4','0');
  170. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresApplianceQuery','6','5','0');
  171. INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginArchiresApplianceQuery','7','6','0');