diff --git a/hook.php b/hook.php index d4079b0..9c17133 100644 --- a/hook.php +++ b/hook.php @@ -54,7 +54,7 @@ function plugin_resources_install() if (!$DB->tableExists("glpi_plugin_resources_resources") && !$DB->tableExists("glpi_plugin_resources_employments")) { $install = true; - $DB->runFile(PLUGIN_RESOURCES_DIR . "/install/sql/empty-3.0..sql"); + $DB->runFile(PLUGIN_RESOURCES_DIR . "/install/sql/empty-3.0.5.sql"); $query = "INSERT INTO `glpi_plugin_resources_contracttypes` ( `id`, `name`, `entities_id`, `is_recursive`) VALUES (1, '" . __('Long term contract', 'resources') . "', 0, 1)"; @@ -703,6 +703,7 @@ function plugin_resources_uninstall() "glpi_plugin_resources_leavingdetails", "glpi_plugin_resources_workprofiles", "glpi_plugin_resources_leavinginformations", + 'glpi_plugin_resources_candidateorigins', ]; foreach ($tables as $table) { diff --git a/install/sql/empty-3.0.5.sql b/install/sql/empty-3.0.5.sql index c796866..5213ec3 100644 --- a/install/sql/empty-3.0.5.sql +++ b/install/sql/empty-3.0.5.sql @@ -4,8 +4,8 @@ CREATE TABLE `glpi_plugin_resources_resources` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `firstname` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `firstname` varchar(255) collate utf8_unicode_ci default NULL, `plugin_resources_contracttypes_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_contracttypes (id)', `users_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_users (id)', `users_id_sales` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_users (id)', @@ -29,12 +29,12 @@ CREATE TABLE `glpi_plugin_resources_resources` `date_of_last_contract_type` timestamp NULL DEFAULT NULL, `date_of_last_location` timestamp NULL DEFAULT NULL, `users_id_recipient_leaving` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_users (id)', - `picture` varchar(100) collate utf8mb4_unicode_ci default NULL, + `picture` varchar(100) collate utf8_unicode_ci default NULL, `is_helpdesk_visible` int unsigned NOT NULL default '1', `date_mod` timestamp NULL DEFAULT NULL, - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, `is_template` tinyint NOT NULL default '0', - `template_name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `template_name` varchar(255) collate utf8_unicode_ci default NULL, `is_deleted` tinyint NOT NULL default '0', `sensitize_security` tinyint NOT NULL default '0', `read_chart` tinyint NOT NULL default '0', @@ -51,9 +51,9 @@ CREATE TABLE `glpi_plugin_resources_resources` `last_location` int unsigned NOT NULL default '0', `yearsexperience` int unsigned NOT NULL default '0', `plugin_resources_candidateorigins_id` int unsigned NOT NULL default '0', - `matricule_second` varchar(255) collate utf8mb4_unicode_ci default NULL, - `secondary_services` varchar(255) collate utf8mb4_unicode_ci default NULL, - `gender` varchar(3) collate utf8mb4_unicode_ci default NULL, + `matricule_second` varchar(255) collate utf8_unicode_ci default NULL, + `secondary_services` varchar(255) collate utf8_unicode_ci default NULL, + `gender` varchar(3) collate utf8_unicode_ci default NULL, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), @@ -76,7 +76,7 @@ CREATE TABLE `glpi_plugin_resources_resources` KEY `plugin_resources_ranks_id` (`plugin_resources_ranks_id`), KEY `plugin_resources_resourcespecialities_id` (`plugin_resources_resourcespecialities_id`), KEY `plugin_resources_leavingreasons_id` (`plugin_resources_leavingreasons_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_resourcestates`; CREATE TABLE `glpi_plugin_resources_resourcestates` @@ -84,13 +84,13 @@ CREATE TABLE `glpi_plugin_resources_resourcestates` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_choices`; CREATE TABLE `glpi_plugin_resources_choices` @@ -98,11 +98,11 @@ CREATE TABLE `glpi_plugin_resources_choices` `id` int unsigned NOT NULL auto_increment, `plugin_resources_resources_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_resources (id)', `plugin_resources_choiceitems_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_choiceitems (id)', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `plugin_resources_resources_id` (`plugin_resources_resources_id`), KEY `plugin_resources_choiceitems_id` (`plugin_resources_choiceitems_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_choiceitems`; CREATE TABLE `glpi_plugin_resources_choiceitems` @@ -111,20 +111,20 @@ CREATE TABLE `glpi_plugin_resources_choiceitems` `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', `plugin_resources_choiceitems_id` int unsigned NOT NULL DEFAULT '0', - `completename` text COLLATE utf8mb4_unicode_ci, + `completename` text COLLATE utf8_unicode_ci, `level` int unsigned NOT NULL DEFAULT '0', - `ancestors_cache` longtext COLLATE utf8mb4_unicode_ci, - `sons_cache` longtext COLLATE utf8mb4_unicode_ci, + `ancestors_cache` longtext COLLATE utf8_unicode_ci, + `sons_cache` longtext COLLATE utf8_unicode_ci, `is_helpdesk_visible` int unsigned NOT NULL default '1', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `unicity` (`entities_id`,`plugin_resources_choiceitems_id`,`name`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `plugin_resources_choiceitems_id` (`plugin_resources_choiceitems_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_resources_items`; CREATE TABLE `glpi_plugin_resources_resources_items` @@ -132,13 +132,13 @@ CREATE TABLE `glpi_plugin_resources_resources_items` `id` int unsigned NOT NULL auto_increment, `plugin_resources_resources_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_resources (id)', `items_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to various table, according to itemtype (id)', - `itemtype` varchar(100) collate utf8mb4_unicode_ci NOT NULL COMMENT 'see .class.php file', - `comment` text collate utf8mb4_unicode_ci, + `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file', + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `unicity` (`plugin_resources_resources_id`,`itemtype`,`items_id`), KEY `FK_device` (`items_id`,`itemtype`), KEY `item` (`itemtype`,`items_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_employees`; CREATE TABLE `glpi_plugin_resources_employees` @@ -151,7 +151,7 @@ CREATE TABLE `glpi_plugin_resources_employees` KEY `plugin_resources_resources_id` (`plugin_resources_resources_id`), KEY `plugin_resources_employers_id` (`plugin_resources_employers_id`), KEY `plugin_resources_clients_id` (`plugin_resources_clients_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_employers`; CREATE TABLE `glpi_plugin_resources_employers` @@ -159,16 +159,16 @@ CREATE TABLE `glpi_plugin_resources_employers` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `short_name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `short_name` varchar(255) collate utf8_unicode_ci default NULL, `locations_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_locations (id)', `plugin_resources_employers_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_employers (id)', - `code` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, - `completename` text collate utf8mb4_unicode_ci default NULL, + `code` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, + `completename` text collate utf8_unicode_ci default NULL, `level` int unsigned NOT NULL DEFAULT '0', - `ancestors_cache` longtext collate utf8mb4_unicode_ci default NULL, - `sons_cache` longtext collate utf8mb4_unicode_ci default NULL, + `ancestors_cache` longtext collate utf8_unicode_ci default NULL, + `sons_cache` longtext collate utf8_unicode_ci default NULL, `second_list` tinyint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `name` (`name`), @@ -176,7 +176,7 @@ CREATE TABLE `glpi_plugin_resources_employers` KEY `locations_id` (`locations_id`), KEY `plugin_resources_employers_id` (`plugin_resources_employers_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_clients`; CREATE TABLE `glpi_plugin_resources_clients` @@ -184,9 +184,9 @@ CREATE TABLE `glpi_plugin_resources_clients` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, `security_compliance` tinyint NOT NULL DEFAULT '0', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, `security_and` tinyint NOT NULL default '0', `security_fifour` tinyint NOT NULL default '0', `security_gisf` tinyint NOT NULL default '0', @@ -195,7 +195,7 @@ CREATE TABLE `glpi_plugin_resources_clients` KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_contracttypes`; CREATE TABLE `glpi_plugin_resources_contracttypes` @@ -203,13 +203,13 @@ CREATE TABLE `glpi_plugin_resources_contracttypes` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `code` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `code` varchar(255) collate utf8_unicode_ci default NULL, `use_employee_wizard` tinyint NOT NULL DEFAULT '1', `use_need_wizard` tinyint NOT NULL DEFAULT '1', `use_picture_wizard` tinyint NOT NULL DEFAULT '1', `use_habilitation_wizard` tinyint NOT NULL DEFAULT '0', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, `use_second_matricule` tinyint NOT NULL DEFAULT '0', `use_second_list_employer` tinyint NOT NULL DEFAULT '0', `use_resignation_form` tinyint NOT NULL DEFAULT '0', @@ -218,7 +218,7 @@ CREATE TABLE `glpi_plugin_resources_contracttypes` KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_departments`; CREATE TABLE `glpi_plugin_resources_departments` @@ -227,19 +227,19 @@ CREATE TABLE `glpi_plugin_resources_departments` `entities_id` int unsigned NOT NULL default '0', `plugin_resources_employers_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_tasks`; CREATE TABLE `glpi_plugin_resources_tasks` ( `id` int unsigned NOT NULL auto_increment, - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', `plugin_resources_resources_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_resources (id)', @@ -248,7 +248,7 @@ CREATE TABLE `glpi_plugin_resources_tasks` `groups_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_groups (id)', `actiontime` int unsigned NOT NULL DEFAULT '0', `is_finished` tinyint NOT NULL default '0', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, `is_deleted` tinyint NOT NULL default '0', PRIMARY KEY (`id`), KEY `name` (`name`), @@ -260,7 +260,7 @@ CREATE TABLE `glpi_plugin_resources_tasks` KEY `is_finished` (`is_finished`), KEY `is_deleted` (`is_deleted`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_taskplannings`; CREATE TABLE `glpi_plugin_resources_taskplannings` @@ -273,7 +273,7 @@ CREATE TABLE `glpi_plugin_resources_taskplannings` KEY `begin` (`begin`), KEY `end` (`end`), KEY `plugin_resources_tasks_id` (`plugin_resources_tasks_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_tasktypes`; CREATE TABLE `glpi_plugin_resources_tasktypes` @@ -281,13 +281,13 @@ CREATE TABLE `glpi_plugin_resources_tasktypes` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_tasks_items`; CREATE TABLE `glpi_plugin_resources_tasks_items` @@ -295,18 +295,18 @@ CREATE TABLE `glpi_plugin_resources_tasks_items` `id` int unsigned NOT NULL auto_increment, `plugin_resources_tasks_id` int unsigned NOT NULL default '0', `items_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to various table, according to itemtype (id)', - `itemtype` varchar(100) collate utf8mb4_unicode_ci NOT NULL COMMENT 'see .class.php file', + `itemtype` varchar(100) collate utf8_unicode_ci NOT NULL COMMENT 'see .class.php file', PRIMARY KEY (`id`), UNIQUE KEY `unicity` (`plugin_resources_tasks_id`,`itemtype`,`items_id`), KEY `FK_device` (`items_id`,`itemtype`), KEY `item` (`itemtype`,`items_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_checklists`; CREATE TABLE `glpi_plugin_resources_checklists` ( `id` int unsigned NOT NULL auto_increment, - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, `entities_id` int unsigned NOT NULL default '0', `plugin_resources_resources_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_resources (id)', `plugin_resources_tasks_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_tasks (id)', @@ -314,32 +314,32 @@ CREATE TABLE `glpi_plugin_resources_checklists` `checklist_type` int unsigned NOT NULL default '0', `tag` tinyint NOT NULL default '0', `is_checked` tinyint NOT NULL default '0', - `address` varchar(255) collate utf8mb4_unicode_ci default NULL, + `address` varchar(255) collate utf8_unicode_ci default NULL, `rank` smallint NOT NULL default '0', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `plugin_resources_resources_id` (`plugin_resources_resources_id`), KEY `plugin_resources_tasks_id` (`plugin_resources_tasks_id`), KEY `plugin_resources_contracttypes_id` (`plugin_resources_contracttypes_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_checklistconfigs`; CREATE TABLE `glpi_plugin_resources_checklistconfigs` ( `id` int unsigned NOT NULL auto_increment, - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, `entities_id` int unsigned NOT NULL default '0', `tag` tinyint NOT NULL default '0', - `address` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, - `itemtype` varchar(255) collate utf8mb4_unicode_ci default '', + `address` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, + `itemtype` varchar(255) collate utf8_unicode_ci default '', `items` int unsigned NOT NULL default '0', PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_ticketcategories`; CREATE TABLE `glpi_plugin_resources_ticketcategories` @@ -347,27 +347,27 @@ CREATE TABLE `glpi_plugin_resources_ticketcategories` `id` int unsigned NOT NULL auto_increment, `ticketcategories_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_ticketcategories (id)', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_profiles`; CREATE TABLE `glpi_plugin_resources_profiles` ( `id` int unsigned NOT NULL auto_increment, `profiles_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_profiles (id)', - `resources` char(1) collate utf8mb4_unicode_ci default NULL, - `task` char(1) collate utf8mb4_unicode_ci default NULL, - `checklist` char(1) collate utf8mb4_unicode_ci default NULL, - `all` char(1) collate utf8mb4_unicode_ci default NULL, - `employee` char(1) collate utf8mb4_unicode_ci default NULL, - `resting` char(1) collate utf8mb4_unicode_ci default NULL, - `holiday` char(1) collate utf8mb4_unicode_ci default NULL, - `open_ticket` char(1) collate utf8mb4_unicode_ci default NULL, - `employment` char(1) collate utf8mb4_unicode_ci default NULL, - `budget` char(1) collate utf8mb4_unicode_ci default NULL, - `dropdown_public` char(1) collate utf8mb4_unicode_ci default NULL, + `resources` char(1) collate utf8_unicode_ci default NULL, + `task` char(1) collate utf8_unicode_ci default NULL, + `checklist` char(1) collate utf8_unicode_ci default NULL, + `all` char(1) collate utf8_unicode_ci default NULL, + `employee` char(1) collate utf8_unicode_ci default NULL, + `resting` char(1) collate utf8_unicode_ci default NULL, + `holiday` char(1) collate utf8_unicode_ci default NULL, + `open_ticket` char(1) collate utf8_unicode_ci default NULL, + `employment` char(1) collate utf8_unicode_ci default NULL, + `budget` char(1) collate utf8_unicode_ci default NULL, + `dropdown_public` char(1) collate utf8_unicode_ci default NULL, PRIMARY KEY (`id`), KEY `profiles_id` (`profiles_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_reportconfigs`; CREATE TABLE `glpi_plugin_resources_reportconfigs` @@ -377,11 +377,11 @@ CREATE TABLE `glpi_plugin_resources_reportconfigs` `send_report_notif` tinyint NOT NULL default '1', `send_other_notif` tinyint NOT NULL default '0', `send_transfer_notif` tinyint NOT NULL default '0', - `comment` text collate utf8mb4_unicode_ci, - `information` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, + `information` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `plugin_resources_resources_id` (`plugin_resources_resources_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_resourcerestings`; CREATE TABLE `glpi_plugin_resources_resourcerestings` @@ -392,11 +392,11 @@ CREATE TABLE `glpi_plugin_resources_resourcerestings` `date_end` timestamp NULL DEFAULT NULL, `locations_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_locations (id)', `at_home` tinyint NOT NULL default '0', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `plugin_resources_resources_id` (`plugin_resources_resources_id`), KEY `locations_id` (`locations_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_resourceholidays`; CREATE TABLE `glpi_plugin_resources_resourceholidays` @@ -405,10 +405,10 @@ CREATE TABLE `glpi_plugin_resources_resourceholidays` `plugin_resources_resources_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_resources (id)', `date_begin` timestamp NULL DEFAULT NULL, `date_end` timestamp NULL DEFAULT NULL, - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `plugin_resources_resources_id` (`plugin_resources_resources_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_resourcesituations`; CREATE TABLE `glpi_plugin_resources_resourcesituations` @@ -416,17 +416,17 @@ CREATE TABLE `glpi_plugin_resources_resourcesituations` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `code` varchar(255) collate utf8mb4_unicode_ci default NULL, - `short_name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `code` varchar(255) collate utf8_unicode_ci default NULL, + `short_name` varchar(255) collate utf8_unicode_ci default NULL, `is_contract_linked` tinyint NOT NULL DEFAULT '0', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`), KEY `is_contract_linked` (`is_contract_linked`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_contractnatures`; CREATE TABLE `glpi_plugin_resources_contractnatures` @@ -434,14 +434,14 @@ CREATE TABLE `glpi_plugin_resources_contractnatures` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `code` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `code` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_ranks`; CREATE TABLE `glpi_plugin_resources_ranks` @@ -449,12 +449,12 @@ CREATE TABLE `glpi_plugin_resources_ranks` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `code` varchar(255) collate utf8mb4_unicode_ci default NULL, - `short_name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `code` varchar(255) collate utf8_unicode_ci default NULL, + `short_name` varchar(255) collate utf8_unicode_ci default NULL, `plugin_resources_professions_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_professions (id)', `is_active` tinyint NOT NULL default '0', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, `begin_date` timestamp NULL DEFAULT NULL, `end_date` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -463,7 +463,7 @@ CREATE TABLE `glpi_plugin_resources_ranks` KEY `is_recursive` (`is_recursive`), KEY `plugin_resources_professions_id` (`plugin_resources_professions_id`), KEY `is_active` (`is_active`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_resourcespecialities`; CREATE TABLE `glpi_plugin_resources_resourcespecialities` @@ -471,15 +471,15 @@ CREATE TABLE `glpi_plugin_resources_resourcespecialities` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, `plugin_resources_ranks_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_ranks (id)', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`), KEY `plugin_resources_ranks_id` (`plugin_resources_ranks_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_leavingreasons`; CREATE TABLE `glpi_plugin_resources_leavingreasons` @@ -487,13 +487,13 @@ CREATE TABLE `glpi_plugin_resources_leavingreasons` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_professions`; CREATE TABLE `glpi_plugin_resources_professions` @@ -501,13 +501,13 @@ CREATE TABLE `glpi_plugin_resources_professions` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `code` varchar(255) collate utf8mb4_unicode_ci default NULL, - `short_name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `code` varchar(255) collate utf8_unicode_ci default NULL, + `short_name` varchar(255) collate utf8_unicode_ci default NULL, `plugin_resources_professionlines_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_professionlines (id)', `plugin_resources_professioncategories_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_professioncategories (id)', `is_active` tinyint NOT NULL default '0', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, `begin_date` timestamp NULL DEFAULT NULL, `end_date` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -517,7 +517,7 @@ CREATE TABLE `glpi_plugin_resources_professions` KEY `plugin_resources_professionlines_id` (`plugin_resources_professionlines_id`), KEY `plugin_resources_professioncategories_id` (`plugin_resources_professioncategories_id`), KEY `is_active` (`is_active`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_professionlines`; CREATE TABLE `glpi_plugin_resources_professionlines` @@ -525,14 +525,14 @@ CREATE TABLE `glpi_plugin_resources_professionlines` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `code` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `code` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_professioncategories`; CREATE TABLE `glpi_plugin_resources_professioncategories` @@ -540,20 +540,20 @@ CREATE TABLE `glpi_plugin_resources_professioncategories` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `code` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `code` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_employments`; CREATE TABLE `glpi_plugin_resources_employments` ( `id` int unsigned NOT NULL auto_increment, - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', `plugin_resources_resources_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_resources (id)', @@ -565,7 +565,7 @@ CREATE TABLE `glpi_plugin_resources_employments` `begin_date` timestamp NULL DEFAULT NULL, `end_date` timestamp NULL DEFAULT NULL, `date_mod` timestamp NULL DEFAULT NULL, - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `plugin_resources_resources_id` (`plugin_resources_resources_id`), @@ -576,7 +576,7 @@ CREATE TABLE `glpi_plugin_resources_employments` KEY `entities_id` (`entities_id`), KEY `date_mod` (`date_mod`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_employmentstates`; CREATE TABLE `glpi_plugin_resources_employmentstates` @@ -584,17 +584,17 @@ CREATE TABLE `glpi_plugin_resources_employmentstates` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `short_name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `short_name` varchar(255) collate utf8_unicode_ci default NULL, `is_active` tinyint NOT NULL default '0', `is_leaving_state` tinyint NOT NULL default '0', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`), KEY `is_active` (`is_active`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_budgets`; CREATE TABLE `glpi_plugin_resources_budgets` @@ -602,7 +602,7 @@ CREATE TABLE `glpi_plugin_resources_budgets` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, `plugin_resources_professions_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_professions (id)', `plugin_resources_ranks_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_ranks (id)', `plugin_resources_budgettypes_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_budgettypes (id)', @@ -620,7 +620,7 @@ CREATE TABLE `glpi_plugin_resources_budgets` KEY `date_mod` (`date_mod`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_costs`; CREATE TABLE `glpi_plugin_resources_costs` @@ -628,20 +628,20 @@ CREATE TABLE `glpi_plugin_resources_costs` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, `plugin_resources_professions_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_professions (id)', `plugin_resources_ranks_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_plugin_resources_ranks (id)', `begin_date` timestamp NULL DEFAULT NULL, `end_date` timestamp NULL DEFAULT NULL, `cost` decimal(10, 2) NOT NULL default '0', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `plugin_resources_professions_id` (`plugin_resources_professions_id`), KEY `plugin_resources_ranks_id` (`plugin_resources_ranks_id`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_budgettypes`; CREATE TABLE `glpi_plugin_resources_budgettypes` @@ -649,14 +649,14 @@ CREATE TABLE `glpi_plugin_resources_budgettypes` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `code` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `code` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; -- DROP TABLE IF EXISTS `glpi_plugin_resources_budgetvolumes`; CREATE TABLE `glpi_plugin_resources_budgetvolumes` @@ -664,14 +664,14 @@ CREATE TABLE `glpi_plugin_resources_budgetvolumes` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `code` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `code` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; @@ -681,12 +681,12 @@ CREATE TABLE `glpi_plugin_resources_resources_changes` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `actions_id` int unsigned NOT NULL DEFAULT '0', - `itilcategories_id` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `itilcategories_id` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `entities_id` (`entities_id`), KEY `itilcategories_id` (`itilcategories_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_notifications`; @@ -700,7 +700,7 @@ CREATE TABLE `glpi_plugin_resources_notifications` PRIMARY KEY (`id`), KEY `users_id` (`users_id`), KEY `date_mod` (`date_mod`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_transferentities`; CREATE TABLE `glpi_plugin_resources_transferentities` @@ -711,7 +711,7 @@ CREATE TABLE `glpi_plugin_resources_transferentities` PRIMARY KEY (`id`), KEY `entities_id` (`entities_id`), KEY `groups_id` (`groups_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_resourcebadges`; CREATE TABLE `glpi_plugin_resources_resourcebadges` @@ -722,7 +722,7 @@ CREATE TABLE `glpi_plugin_resources_resourcebadges` PRIMARY KEY (`id`), KEY `entities_id` (`entities_id`), KEY `plugin_metademands_metademands_id` (`plugin_metademands_metademands_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_confighabilitations`; CREATE TABLE `glpi_plugin_resources_confighabilitations` @@ -734,7 +734,7 @@ CREATE TABLE `glpi_plugin_resources_confighabilitations` PRIMARY KEY (`id`), KEY `entities_id` (`entities_id`), KEY `plugin_metademands_metademands_id` (`plugin_metademands_metademands_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_habilitationlevels`; CREATE TABLE `glpi_plugin_resources_habilitationlevels` @@ -742,15 +742,15 @@ CREATE TABLE `glpi_plugin_resources_habilitationlevels` `id` int unsigned NOT NULL AUTO_INCREMENT, `entities_id` int unsigned NOT NULL DEFAULT '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `comment` text COLLATE utf8mb4_unicode_ci, + `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `comment` text COLLATE utf8_unicode_ci, `number` tinyint NOT NULL DEFAULT '0', `is_mandatory_creating_resource` tinyint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_habilitations`; CREATE TABLE `glpi_plugin_resources_habilitations` @@ -758,21 +758,21 @@ CREATE TABLE `glpi_plugin_resources_habilitations` `id` int unsigned NOT NULL AUTO_INCREMENT, `entities_id` int unsigned NOT NULL DEFAULT '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `plugin_resources_habilitations_id` int unsigned NOT NULL default '0', `plugin_resources_habilitationlevels_id` int unsigned NOT NULL default '0', - `completename` text COLLATE utf8mb4_unicode_ci, - `comment` text COLLATE utf8mb4_unicode_ci, + `completename` text COLLATE utf8_unicode_ci, + `comment` text COLLATE utf8_unicode_ci, `level` int unsigned NOT NULL DEFAULT '0', - `ancestors_cache` longtext COLLATE utf8mb4_unicode_ci, - `sons_cache` longtext COLLATE utf8mb4_unicode_ci, + `ancestors_cache` longtext COLLATE utf8_unicode_ci, + `sons_cache` longtext COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `plugin_resources_habilitations_id` (`plugin_resources_habilitations_id`), KEY `plugin_resources_habilitationlevels_id` (`plugin_resources_habilitationlevels_id`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_resourcehabilitations`; CREATE TABLE `glpi_plugin_resources_resourcehabilitations` @@ -783,7 +783,7 @@ CREATE TABLE `glpi_plugin_resources_resourcehabilitations` PRIMARY KEY (`id`), KEY `plugin_resources_resources_id` (`plugin_resources_resources_id`), KEY `glpi_plugin_resources_habilitations_id` (`plugin_resources_habilitations_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_configs`; CREATE TABLE `glpi_plugin_resources_configs` @@ -811,7 +811,7 @@ CREATE TABLE `glpi_plugin_resources_configs` `display_habilitations_txt` int unsigned NOT NULL default '0', `hide_view_commercial_resource` tinyint NOT NULL default '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; INSERT INTO `glpi_plugin_resources_configs` VALUES (1, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0); @@ -820,26 +820,26 @@ DROP TABLE IF EXISTS `glpi_plugin_resources_imports`; CREATE TABLE `glpi_plugin_resources_imports` ( `id` int unsigned NOT NULL auto_increment, - `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `comment` text COLLATE utf8mb4_unicode_ci, + `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `comment` text COLLATE utf8_unicode_ci, `is_active` tinyint NOT NULL default '0', `is_deleted` tinyint NOT NULL default '0', `date_creation` timestamp NULL DEFAULT NULL, `date_mod` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_importcolumns`; CREATE TABLE `glpi_plugin_resources_importcolumns` ( `id` int unsigned NOT NULL auto_increment, - `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, - `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `resource_column` int unsigned NOT NULL, `is_identifier` tinyint NOT NULL default '0', `plugin_resources_imports_id` int unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_importresources`; CREATE TABLE `glpi_plugin_resources_importresources` @@ -848,28 +848,28 @@ CREATE TABLE `glpi_plugin_resources_importresources` `date_creation` timestamp NULL DEFAULT NULL, `plugin_resources_imports_id` int unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_importresourcedatas`; CREATE TABLE `glpi_plugin_resources_importresourcedatas` ( `id` int unsigned NOT NULL auto_increment, - `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, - `value` varchar(255) COLLATE utf8mb4_unicode_ci NULL, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `value` varchar(255) COLLATE utf8_unicode_ci NULL, `plugin_resources_importresources_id` int unsigned NOT NULL DEFAULT '0', `plugin_resources_importcolumns_id` int unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_resourceimports`; CREATE TABLE `glpi_plugin_resources_resourceimports` ( `id` int unsigned NOT NULL auto_increment, - `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, - `value` varchar(255) COLLATE utf8mb4_unicode_ci NULL, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `value` varchar(255) COLLATE utf8_unicode_ci NULL, `plugin_resources_resources_id` int unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_linkads`; CREATE TABLE `glpi_plugin_resources_linkads` @@ -877,20 +877,20 @@ CREATE TABLE `glpi_plugin_resources_linkads` `id` int unsigned NOT NULL auto_increment, `plugin_resources_resources_id` int unsigned NOT NULL default '0', `auth_id` int unsigned NOT NULL default '0', - `login` varchar(255) collate utf8mb4_unicode_ci default NULL, - `mail` varchar(255) collate utf8mb4_unicode_ci default NULL, - `phone` varchar(255) collate utf8mb4_unicode_ci default NULL, - `role` varchar(255) collate utf8mb4_unicode_ci default NULL, - `service` varchar(255) collate utf8mb4_unicode_ci default NULL, - `location` varchar(255) collate utf8mb4_unicode_ci default NULL, - `cellphone` varchar(255) collate utf8mb4_unicode_ci default NULL, + `login` varchar(255) collate utf8_unicode_ci default NULL, + `mail` varchar(255) collate utf8_unicode_ci default NULL, + `phone` varchar(255) collate utf8_unicode_ci default NULL, + `role` varchar(255) collate utf8_unicode_ci default NULL, + `service` varchar(255) collate utf8_unicode_ci default NULL, + `location` varchar(255) collate utf8_unicode_ci default NULL, + `cellphone` varchar(255) collate utf8_unicode_ci default NULL, `action_done` tinyint NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `unicity` (`login`), UNIQUE KEY `unicity2` (`plugin_resources_resources_id`), KEY `login` (`login`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_linkmetademands`; CREATE TABLE `glpi_plugin_resources_linkmetademands` @@ -898,48 +898,48 @@ CREATE TABLE `glpi_plugin_resources_linkmetademands` `id` int unsigned NOT NULL auto_increment, `plugin_metademands_fields_id` int unsigned NOT NULL default '0', `plugin_metademands_metademands_id` int unsigned NOT NULL default '0', - `check_value` TEXT collate utf8mb4_unicode_ci default NULL, - `checklist_in` TEXT collate utf8mb4_unicode_ci default NULL, - `checklist_out` TEXT collate utf8mb4_unicode_ci default NULL, - `habilitation` TEXT collate utf8mb4_unicode_ci default NULL, + `check_value` TEXT collate utf8_unicode_ci default NULL, + `checklist_in` TEXT collate utf8_unicode_ci default NULL, + `checklist_out` TEXT collate utf8_unicode_ci default NULL, + `habilitation` TEXT collate utf8_unicode_ci default NULL, `is_leaving_resource` tinyint NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `unicity` (`plugin_metademands_fields_id`), KEY `plugin_metademands_fields_id` (`plugin_metademands_fields_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_adconfigs`; CREATE TABLE `glpi_plugin_resources_adconfigs` ( `id` int unsigned NOT NULL auto_increment, `auth_id` int unsigned NOT NULL default '0', - `login` varchar(255) collate utf8mb4_unicode_ci default '', - `password` varchar(255) collate utf8mb4_unicode_ci default '', + `login` varchar(255) collate utf8_unicode_ci default '', + `password` varchar(255) collate utf8_unicode_ci default '', `creation_categories_id` TEXT NOT NULL, `modification_categories_id` TEXT NOT NULL, `deletion_categories_id` TEXT NOT NULL, - `logAD` varchar(255) collate utf8mb4_unicode_ci default '', - `nameAD` varchar(255) collate utf8mb4_unicode_ci default '', - `phoneAD` varchar(255) collate utf8mb4_unicode_ci default NULL, - `companyAD` varchar(255) collate utf8mb4_unicode_ci default '', - `departmentAD` varchar(255) collate utf8mb4_unicode_ci default '', - `firstnameAD` varchar(255) collate utf8mb4_unicode_ci default '', - `mailAD` varchar(255) collate utf8mb4_unicode_ci default '', - `contractEndAD` varchar(255) collate utf8mb4_unicode_ci default '', - `contractTypeAD` varchar(255) collate utf8mb4_unicode_ci default '', - `ouDesactivateUserAD` varchar(255) collate utf8mb4_unicode_ci default '', - `ouUser` varchar(255) collate utf8mb4_unicode_ci default '', - `cellPhoneAD` varchar(255) collate utf8mb4_unicode_ci default '', - `roleAD` varchar(255) collate utf8mb4_unicode_ci default '', - `serviceAD` varchar(255) collate utf8mb4_unicode_ci default '', - `locationAD` varchar(255) collate utf8mb4_unicode_ci default '', + `logAD` varchar(255) collate utf8_unicode_ci default '', + `nameAD` varchar(255) collate utf8_unicode_ci default '', + `phoneAD` varchar(255) collate utf8_unicode_ci default NULL, + `companyAD` varchar(255) collate utf8_unicode_ci default '', + `departmentAD` varchar(255) collate utf8_unicode_ci default '', + `firstnameAD` varchar(255) collate utf8_unicode_ci default '', + `mailAD` varchar(255) collate utf8_unicode_ci default '', + `contractEndAD` varchar(255) collate utf8_unicode_ci default '', + `contractTypeAD` varchar(255) collate utf8_unicode_ci default '', + `ouDesactivateUserAD` varchar(255) collate utf8_unicode_ci default '', + `ouUser` varchar(255) collate utf8_unicode_ci default '', + `cellPhoneAD` varchar(255) collate utf8_unicode_ci default '', + `roleAD` varchar(255) collate utf8_unicode_ci default '', + `serviceAD` varchar(255) collate utf8_unicode_ci default '', + `locationAD` varchar(255) collate utf8_unicode_ci default '', `first_form` int unsigned NOT NULL default '0', `second_form` int unsigned NOT NULL default '0', `mail_prefix` int unsigned NOT NULL default '0', `mail_suffix` varchar(255) NOT NULL default '', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; INSERT INTO `glpi_plugin_resources_adconfigs` VALUES (1, 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0, ''); @@ -949,13 +949,13 @@ CREATE TABLE `glpi_plugin_resources_roles` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_functions`; CREATE TABLE `glpi_plugin_resources_functions` @@ -963,13 +963,13 @@ CREATE TABLE `glpi_plugin_resources_functions` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_teams`; CREATE TABLE `glpi_plugin_resources_teams` @@ -977,16 +977,16 @@ CREATE TABLE `glpi_plugin_resources_teams` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `code` varchar(255) collate utf8mb4_unicode_ci default NULL, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `code` varchar(255) collate utf8_unicode_ci default NULL, `users_id` int unsigned NOT NULL default '0', `users_id_substitute` int unsigned NOT NULL default '0', - `comment` text collate utf8mb4_unicode_ci, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_services`; CREATE TABLE `glpi_plugin_resources_services` @@ -994,13 +994,13 @@ CREATE TABLE `glpi_plugin_resources_services` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`), KEY `name` (`name`), KEY `entities_id` (`entities_id`), KEY `is_recursive` (`is_recursive`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_roles_services`; CREATE TABLE `glpi_plugin_resources_roles_services` @@ -1009,7 +1009,7 @@ CREATE TABLE `glpi_plugin_resources_roles_services` `plugin_resources_roles_id` int unsigned NOT NULL default '0', `plugin_resources_services_id` int unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_departments_services`; CREATE TABLE `glpi_plugin_resources_departments_services` @@ -1018,7 +1018,7 @@ CREATE TABLE `glpi_plugin_resources_departments_services` `plugin_resources_departments_id` int unsigned NOT NULL default '0', `plugin_resources_services_id` int unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_contracttypeprofiles`; CREATE TABLE `glpi_plugin_resources_contracttypeprofiles` @@ -1027,7 +1027,7 @@ CREATE TABLE `glpi_plugin_resources_contracttypeprofiles` `plugin_resources_contracttypes_id` varchar(255) NOT NULL default '0', `profiles_id` int unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_actionprofiles`; CREATE TABLE `glpi_plugin_resources_actionprofiles` @@ -1036,7 +1036,7 @@ CREATE TABLE `glpi_plugin_resources_actionprofiles` `actions_id` varchar(255) NOT NULL default '0', `profiles_id` int unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_businessunits`; CREATE TABLE `glpi_plugin_resources_businessunits` @@ -1044,10 +1044,10 @@ CREATE TABLE `glpi_plugin_resources_businessunits` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_degreegroups`; CREATE TABLE `glpi_plugin_resources_degreegroups` @@ -1055,10 +1055,10 @@ CREATE TABLE `glpi_plugin_resources_degreegroups` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_recruitingsources`; CREATE TABLE `glpi_plugin_resources_recruitingsources` @@ -1066,10 +1066,10 @@ CREATE TABLE `glpi_plugin_resources_recruitingsources` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_destinations`; CREATE TABLE `glpi_plugin_resources_destinations` @@ -1077,10 +1077,10 @@ CREATE TABLE `glpi_plugin_resources_destinations` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; DROP TABLE IF EXISTS `glpi_plugin_resources_resignationreasons`; CREATE TABLE `glpi_plugin_resources_resignationreasons` @@ -1088,28 +1088,28 @@ CREATE TABLE `glpi_plugin_resources_resignationreasons` `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; CREATE TABLE `glpi_plugin_resources_leavingdetails` ( `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; CREATE TABLE `glpi_plugin_resources_workprofiles` ( `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; CREATE TABLE `glpi_plugin_resources_leavinginformations` ( @@ -1126,19 +1126,19 @@ CREATE TABLE `glpi_plugin_resources_leavinginformations` `effective_leaving_date` timestamp NULL DEFAULT NULL, `pay_gap` tinyint NOT NULL DEFAULT '0', `mission_lost` tinyint NOT NULL DEFAULT '0', - `company_name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `company_name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; CREATE TABLE `glpi_plugin_resources_candidateorigins` ( `id` int unsigned NOT NULL auto_increment, `entities_id` int unsigned NOT NULL default '0', `is_recursive` tinyint NOT NULL DEFAULT '0', - `name` varchar(255) collate utf8mb4_unicode_ci default NULL, - `comment` text collate utf8mb4_unicode_ci, + `name` varchar(255) collate utf8_unicode_ci default NULL, + `comment` text collate utf8_unicode_ci, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=DYNAMIC; INSERT INTO `glpi_displaypreferences`