Subversion Repositories eFlore/Projets.eflore-projets

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
754 raphael 1
-- dépot "cel", r1739
819 raphael 2
ALTER TABLE `BASEEDIT`.`cel_obs` MODIFY nom_sel VARCHAR(601) NULL DEFAULT NULL;
3
ALTER TABLE `BASEEDIT`.`cel_obs` MODIFY nom_ret VARCHAR(601) NULL DEFAULT NULL;
754 raphael 4
 
5
 
6
-- dépot "cel", r1739
819 raphael 7
CREATE INDEX nom_referentiel ON `BASEEDIT`.`cel_obs` (`nom_referentiel`(5));
778 raphael 8
 
9
-- depot "cel", r1809
819 raphael 10
ALTER TABLE `BASEEDIT`.`cel_obs` MODIFY altitude INTEGER(5) DEFAULT NULL;
782 raphael 11
 
12
-- depot "cel", r1811
819 raphael 13
CREATE OR REPLACE VIEW `BASEEDIT`.`cel_utilisateurs` AS
782 raphael 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
819 raphael 16
        FROM `BASEANNUAIRE`.`annuaire_tela` AS at
17
        LEFT JOIN `BASEEDIT`.`cel_utilisateurs_infos` AS ui ON (ui.id_utilisateur = at.U_ID);
895 raphael 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 ?