Updates and improves code for Xorg/AX directory merge.
[platal.git] / modules / fusionax / Formations.sql
CommitLineData
b9ad0878
PC
1-- Import complet des formations
2
3DROP TABLE IF EXISTS `fusionax_formations`;
4
5CREATE TABLE IF NOT EXISTS `fusionax_formations` (
c7eac294
SJ
6 FO CHAR(2) NOT NULL COMMENT 'Vaut toujours FO pour cette table',
7 id_ancien VARCHAR(8) NOT NULL COMMENT 'Id unique de l''ancien',
ddc4c642
SJ
8 Intitule_diplome VARCHAR(60) NOT NULL COMMENT 'Intitulé du diplôme',
9 Intitule_formation VARCHAR(60) NOT NULL COMMENT 'Intitulé de la formation',
10 Descr_formation VARCHAR(60) NOT NULL COMMENT 'Description de la formation',
11 tmp_1 VARCHAR(60) NOT NULL,
12 tmp_2 VARCHAR(60) NOT NULL,
13 tmp_3 VARCHAR(60) NOT NULL,
14 tmp_4 VARCHAR(60) NOT NULL,
c7eac294 15 PRIMARY KEY (id_ancien, Intitule_diplome, Intitule_formation)
ddc4c642 16) ENGINE=InnoDB, CHARSET=utf8;
b9ad0878 17
ddc4c642 18 LOAD DATA LOCAL INFILE '{?}Formations.txt'
c7eac294
SJ
19 INTO TABLE fusionax_formations
20FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\r\n' (FO, id_ancien, Intitule_diplome, Intitule_formation, Descr_formation, tmp_1, tmp_2, tmp_3, tmp_4);