Commit 54a37b3b authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Merge remote-tracking branch 'origin/master'

parents 2bea613b 0b58cdb8
Loading
Loading
Loading
Loading
+2 −32
Original line number Diff line number Diff line
@@ -14908,7 +14908,7 @@
          'scale' => NULL,
          'precision' => NULL,
          'nullable' => false,
          'default' => NULL,
          'default' => '1',
          'commentaire' => NULL,
        ),
        'CODE_INTERVENANT' => 
@@ -31552,36 +31552,6 @@ END UNICAEN_TBL;',
  ),
  'BddAdmin\\Ddl\\DdlView' => 
  array (
    'NEWVIEW' => 
    array (
      'name' => 'NEWVIEW',
      'definition' => 'CREATE OR REPLACE FORCE VIEW NEWVIEW AS
WITH t AS (
SELECT
  e.id                etape_id,
  ep.id               element_pedagogique_id,
  ccep.centre_cout_id centre_cout_id,
  ccep.type_heures_id type_heures_id,
  ep.annee_id         annee_id,
  ep.code             code
FROM
  etape                     e
  JOIN source               s ON s.importable = 0
  JOIN element_pedagogique ep ON ep.etape_id = e.id AND ep.histo_destruction IS NULL
  JOIN centre_cout_ep    ccep ON ccep.element_pedagogique_id = ep.id AND ccep.histo_destruction IS NULL AND ccep.source_id = s.id
WHERE
  e.histo_destruction IS NULL
)
SELECT
  t."ETAPE_ID",t."ELEMENT_PEDAGOGIQUE_ID",t."CENTRE_COUT_ID",t."TYPE_HEURES_ID",t."ANNEE_ID",t."CODE",
  ep.id new_element_pedagogique_id,
  ccep.id new_centre_cout_ep_id,
  ccep.histo_destruction
FROM
  t
  JOIN element_pedagogique ep ON ep.annee_id = t.annee_id + 1 AND ep.code = t.code AND ep.histo_destruction IS NULL
  LEFT JOIN centre_cout_ep ccep ON ccep.element_pedagogique_id = ep.id AND ccep.centre_cout_id = t.centre_cout_id AND ccep.type_heures_id = t.type_heures_id',
    ),
    'V_AGREMENT_EXPORT_CSV' =>
    array (
      'name' => 'V_AGREMENT_EXPORT_CSV',