SET FOREIGN_KEY_CHECKS=0;
ALTER DATABASE `bd_mesavoirs` CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;

ALTER TABLE `bd_mesavoirs`.`actifs` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `bd_mesavoirs`.`allocation` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `bd_mesavoirs`.`classes` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `bd_mesavoirs`.`docs` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `bd_mesavoirs`.`histo` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `bd_mesavoirs`.`members` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `bd_mesavoirs`.`valeur_part` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

ALTER TABLE `bd_mesavoirs`.`classes` CHANGE `bg_color` `bg_color` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
ALTER TABLE `bd_mesavoirs`.`classes` CHANGE `classe` `classe` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `bd_mesavoirs`.`classes` CHANGE `type` `type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `bd_mesavoirs`.`actifs` CHANGE `classe` `classe` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
ALTER TABLE `bd_mesavoirs`.`actifs` CHANGE `devise` `devise` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
ALTER TABLE `bd_mesavoirs`.`actifs` CHANGE `libelle` `libelle` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
ALTER TABLE `bd_mesavoirs`.`actifs` CHANGE `symbole` `symbole` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
ALTER TABLE `bd_mesavoirs`.`actifs` CHANGE `website` `website` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
ALTER TABLE `bd_mesavoirs`.`allocation` CHANGE `classe` `classe` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `bd_mesavoirs`.`docs` CHANGE `intitule` `intitule` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `bd_mesavoirs`.`docs` CHANGE `theme` `theme` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `bd_mesavoirs`.`members` CHANGE `acces` `acces` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
ALTER TABLE `bd_mesavoirs`.`members` CHANGE `email` `email` varchar(55) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `bd_mesavoirs`.`members` CHANGE `mdp` `mdp` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
ALTER TABLE `bd_mesavoirs`.`members` CHANGE `mdp_oublie` `mdp_oublie` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
ALTER TABLE `bd_mesavoirs`.`members` CHANGE `nom` `nom` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
ALTER TABLE `bd_mesavoirs`.`members` CHANGE `prenom` `prenom` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;

ALTER TABLE `bd_mesavoirs`.`docs` CHANGE `texte` `texte` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
SET FOREIGN_KEY_CHECKS=1;