INSERT INTO TIMS.REPORT (TRANSLATION_ID,CUSTOMIZED_NAME,FILE_NAME,MINIMUM_VERSION,CLASS,TYPE) VALUES ("dayPrint", "graphe d'activité", "dayGraph", 1, "transport.report.DayPrint", 1);
INSERT INTO TIMS.DROIT_RAPPORT (CLE_PROFIL,CLE_RAPPORT,ENABLE) select CLE_PROFIL, ID, 0 from TIMS.T_PROFIL, TIMS.REPORT where  TRANSLATION_ID="dayPrint";
UPDATE TIMS.DROIT_RAPPORT SET ENABLE = 1 WHERE CLE_PROFIL = 1;

INSERT INTO TIMS.T_FICHE (`NOM_FICHE`,`DESCRIPTION_FICHE`,`DROIT_DEFAUT`) VALUES ('IMPORT_ACTIVITY','Accès à l\'import des activités','0000');
INSERT INTO TIMS.T_DROIT (`CLE_PROFIL`,`CLE_FICHE`,`ECRITURE`,`MODIFICATION`,`SUPPRESSION`,`CONSULTATION`) (select CLE_PROFIL, CLE_FICHE, 1,1,1,1 from `tims`.`t_profil`, `tims`.`t_fiche` where nom_fiche = "IMPORT_ACTIVITY");

UPDATE TIMS.CONFIGURATION SET EVAL = "4.2.0" WHERE VALUE = "database_version";