Commit bee29de2 authored by Anthony Gautreau's avatar Anthony Gautreau
Browse files

LIB_RDE facultatif à l'import des cours (valeur par défaut, ajout au .sql.dist)

parent b32fe7f3
Loading
Loading
Loading
Loading
+1 −1
Changes for api/data/request_cour.sql.dist: 1 added line, 1 removed line.
Original line number Diff line number Diff line
SELECT COD_ELP, COD_CMP, COD_VET, LIB_ELP, LIB_CMT_ELP, S1, S2, LANGUE_ENSEIGNEMENT, NBR_CRD_ELP, NBR_VOL_ELP
SELECT COD_ELP, COD_CMP, COD_VET, LIB_ELP, LIB_RDE, LIB_CMT_ELP, S1, S2, LANGUE_ENSEIGNEMENT, NBR_CRD_ELP, NBR_VOL_ELP
FROM WELCOME_CATALOGUE
WHERE PROPOSE_CATALOGUE = 'O'
+1
Changes for api/src/Command/ImportDataCommand.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -283,6 +283,7 @@ VALUES (nextval('cour_id_seq'), :COD_ELP, :COD_CMP, :COD_VET, :LIB_ELP, :LIB_RDE
            $pb->start();
            $i = 0;
            foreach ($courList as $line) {
                $line['LIB_RDE'] = $line['LIB_RDE'] ?? null;
                $line['LIB_CMT_ELP'] = $line['LIB_CMT_ELP'] ?? null;
                $line['S1'] = $line['S1'] ?? null;
                $line['S2'] = $line['S2'] ?? null;