Commit d109f282 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Les séquences sont maintenant mises à jour automatiquement!!

parent 98f012a6
......@@ -20,6 +20,7 @@ $classes = [
\BddAdmin\Ddl\DdlView::class,
\BddAdmin\Ddl\DdlPackage::class,
\BddAdmin\Ddl\DdlTrigger::class,
\BddAdmin\Ddl\DdlSequence::class,
];
foreach ($classes as $ddlClass) {
......
......@@ -55,36 +55,20 @@ class DataGen
/*
'AFFECTATION' => "utilisateur_id IN (SELECT id FROM utilisateur WHERE username='" . self::OSE_USER . "')",
'CC_ACTIVITE' => '',
'CORPS' => '',
'DEPARTEMENT' => '',
'DISCIPLINE' => '',
'DOMAINE_FONCTIONNEL' => '',
'ETABLISSEMENT' => '',
'ETAT_VOLUME_HORAIRE' => '',
'FONCTION_REFERENTIEL' => '',
'FORMULE_TEST_INTERVENANT' => '',
'FORMULE_TEST_STRUCTURE' => '',
'FORMULE_TEST_VOLUME_HORAIRE' => '',
'GRADE' => 'corps_id in (select c.id from corps c where c.histo_destruction is null)',
'GROUPE' => '',
'IMPORT_TABLES' => '',
'MESSAGE' => '',
'MODELE_CONTRAT' => "libelle = 'Modèle par défaut'",
'MOTIF_MODIFICATION_SERVICE' => '',
'MOTIF_NON_PAIEMENT' => '',
'PARAMETRE' => '',
'PAYS' => '',
'PERIMETRE' => '',
'PERIODE' => '',
'PLAFOND' => '',
'PLAFOND_ETAT' => '',
'REGLE_STRUCTURE_VALIDATION' => '',
'ROLE' => '',
'ROLE_PRIVILEGE' => '',
'SCENARIO' => 'structure_id IS NULL',
'SOURCE' => "code='OSE'",
'STATUT_INTERVENANT' => '',
'STATUT_PRIVILEGE' => 'statut_id IN (SELECT si.id FROM statut_intervenant si WHERE si.histo_destruction IS NULL)',
'TAUX_HORAIRE_HETD' => '',
'TBL' => '',
'TYPE_AGREMENT' => '',
......@@ -93,14 +77,27 @@ class DataGen
'TYPE_HEURES' => '',
'TYPE_INTERVENANT' => '',
'TYPE_INTERVENTION' => "code IN ('CM','TD','TP')",
'TYPE_PIECE_JOINTE' => '',
'TYPE_PIECE_JOINTE_STATUT' => '',
'TYPE_RESSOURCE' => '',
'TYPE_VALIDATION' => '',
'TYPE_VOLUME_HORAIRE' => '',
'UTILISATEUR' => "username = '" . self::OSE_USER . "'",
'WF_ETAPE' => '',
'WF_ETAPE_DEP' => '',
'PAYS' => '',
'DEPARTEMENT' => '',
'DISCIPLINE' => '',
'DOMAINE_FONCTIONNEL' => '',
'ETABLISSEMENT' => '',
'CORPS' => '',
'GRADE' => 'corps_id in (select c.id from corps c where c.histo_destruction is null)',
'FONCTION_REFERENTIEL' => '',
'MOTIF_MODIFICATION_SERVICE' => '',
'MOTIF_NON_PAIEMENT' => '',
'STATUT_INTERVENANT' => '',
'STATUT_PRIVILEGE' => 'statut_id IN (SELECT si.id FROM statut_intervenant si WHERE si.histo_destruction IS NULL)',
'TYPE_PIECE_JOINTE' => '',
'TYPE_PIECE_JOINTE_STATUT' => '',
*/
public function __construct(OseAdmin $oseAdmin)
......
......@@ -20,7 +20,7 @@ return [
\BddAdmin\Ddl\DdlPackage::class => ['includes' => []],
\BddAdmin\Ddl\DdlPrimaryConstraint::class => ['includes' => ['null']],
\BddAdmin\Ddl\DdlRefConstraint::class => ['includes' => ['null']],
\BddAdmin\Ddl\DdlSequence::class => ['includes' => ['null']],
\BddAdmin\Ddl\DdlSequence::class => ['includes' => []],
\BddAdmin\Ddl\DdlTable::class => ['includes' => $tables],
\BddAdmin\Ddl\DdlTrigger::class => ['includes' => []],
\BddAdmin\Ddl\DdlUniqueConstraint::class => ['includes' => ['null']],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment