A few fixes on how to deal with AX export.
[platal.git] / modules / fusionax / Formations.sql
1 -- Import complet des formations
2
3 DROP TABLE IF EXISTS `fusionax_formations`;
4
5 CREATE TABLE IF NOT EXISTS `fusionax_formations` (
6 FO CHAR(2) NOT NULL COMMENT 'Vaut toujours FO pour cette table',
7 ax_id VARCHAR(8) NOT NULL COMMENT 'Id unique de l''ancien',
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 PRIMARY KEY (ax_id, Intitule_diplome, Intitule_formation)
12 ) ENGINE=InnoDB, CHARSET=utf8;
13
14 LOAD DATA LOCAL INFILE '{?}Formations.txt' INTO TABLE fusionax_formations FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n'
15 (FO, ax_id, Intitule_diplome, Intitule_formation, Descr_formation);