Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 819 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 819 Rev 895
Line 13... Line 13...
13
CREATE OR REPLACE VIEW `BASEEDIT`.`cel_utilisateurs` AS 
13
CREATE OR REPLACE VIEW `BASEEDIT`.`cel_utilisateurs` AS 
14
        SELECT at.U_ID AS id_utilisateur, at.U_SURNAME AS prenom, at.U_NAME AS nom, at.U_MAIL AS courriel, at.U_PASSWD AS mot_de_passe,  
14
        SELECT at.U_ID AS id_utilisateur, at.U_SURNAME AS prenom, at.U_NAME AS nom, at.U_MAIL AS courriel, at.U_PASSWD AS mot_de_passe,  
15
               ui.licence_acceptee, ui.admin, ui.preferences, ui.date_premiere_utilisation 
15
               ui.licence_acceptee, ui.admin, ui.preferences, ui.date_premiere_utilisation 
16
        FROM `BASEANNUAIRE`.`annuaire_tela` AS at
16
        FROM `BASEANNUAIRE`.`annuaire_tela` AS at
17
        LEFT JOIN `BASEEDIT`.`cel_utilisateurs_infos` AS ui ON (ui.id_utilisateur = at.U_ID);
17
        LEFT JOIN `BASEEDIT`.`cel_utilisateurs_infos` AS ui ON (ui.id_utilisateur = at.U_ID);
-
 
18
 
-
 
19
-- MySQL 5.6.5 only:
-
 
20
-- ALTER TABLE `BASEEDIT`.`cel_obs` CHANGE COLUMN `date_modification` `date_modification` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ;
-
 
21
-- otherwise, convert `date_modification` to TIMESTAMP ?