Skip to content
Snippets Groups Projects
Commit 715ee144 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

MAJ DDL

parent 3d1be5e8
No related branches found
No related tags found
No related merge requests found
Showing
with 98 additions and 117 deletions
SELECT
nsup.id noeud_sup_id,
lsup.id lien_sup_id,
nl.id noeud_liste_id,
linf.id lien_inf_id,
ninf.id noeud_inf_id
FROM
noeud nsup
JOIN lien lsup ON lsup.noeud_sup_id = nsup.id
AND lsup.histo_destruction IS NULL
JOIN noeud nl ON nl.liste = 1
AND nl.histo_destruction IS NULL
AND nl.id = lsup.noeud_inf_id
JOIN lien linf ON linf.noeud_sup_id = nl.id
AND linf.histo_destruction IS NULL
JOIN noeud ninf ON ninf.id = linf.noeud_inf_id
AND ninf.histo_destruction IS NULL
AND ninf.liste = 0
WHERE
nsup.histo_destruction IS NULL
AND nsup.liste = 0
\ No newline at end of file
create or replace PACKAGE "OSE_CHARGENS" AS
CREATE OR REPLACE PACKAGE "OSE_CHARGENS" AS
PROCEDURE CALC_EFFECTIF( noeud_id NUMERIC, scenario_id NUMERIC, type_heures_id NUMERIC, etape_id NUMERIC);
PROCEDURE CALC_SUB_EFFECTIF( noeud_id NUMERIC, scenario_id NUMERIC, type_heures_id NUMERIC, etape_id NUMERIC);
......
......@@ -204,7 +204,7 @@ CREATE OR REPLACE PACKAGE BODY "UNICAEN_TBL" AS
IF calcul_proc IS NOT NULL THEN
EXECUTE IMMEDIATE
'BEGIN ' || calcul_proc || '(params.p1, params.v1); END;';
'BEGIN ' || calcul_proc || '(UNICAEN_TBL.CALCUL_PROC_PARAMS.p1, UNICAEN_TBL.CALCUL_PROC_PARAMS.v1); END;';
ELSE
EXECUTE IMMEDIATE
'BEGIN UNICAEN_TBL.C_' || TBL_NAME || '(TRUE); END;';
......
......@@ -30,7 +30,7 @@ return [
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'position' => 4,
'position' => 3,
'commentaire' => NULL,
],
'ID' => [
......@@ -54,7 +54,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => NULL,
'position' => 3,
'position' => 4,
'commentaire' => NULL,
],
],
......
......@@ -117,6 +117,18 @@ return [
'position' => 26,
'commentaire' => NULL,
],
'AFFECTATION_FIN' => [
'name' => 'AFFECTATION_FIN',
'type' => 'date',
'bdd-type' => 'DATE',
'length' => 0,
'scale' => NULL,
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'position' => 58,
'commentaire' => NULL,
],
'ANNEE_ID' => [
'name' => 'ANNEE_ID',
'type' => 'int',
......@@ -333,6 +345,18 @@ return [
'position' => 42,
'commentaire' => NULL,
],
'EXPORT_DATE' => [
'name' => 'EXPORT_DATE',
'type' => 'date',
'bdd-type' => 'DATE',
'length' => 0,
'scale' => NULL,
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'position' => 59,
'commentaire' => 'Date du dernier export vers le SIRH',
],
'GRADE_ID' => [
'name' => 'GRADE_ID',
'type' => 'int',
......@@ -693,30 +717,6 @@ return [
'position' => 44,
'commentaire' => NULL,
],
'AFFECTATION_FIN' => [
'name' => 'AFFECTATION_FIN',
'type' => 'date',
'bdd-type' => 'DATE',
'length' => 0,
'scale' => NULL,
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'position' => 58,
'commentaire' => NULL,
],
'EXPORT_DATE' => [
'name' => 'EXPORT_DATE',
'type' => 'date',
'bdd-type' => 'DATE',
'length' => 0,
'scale' => NULL,
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'position' => 59,
'commentaire' => 'Date du dernier export vers le SIRH',
],
],
'columns-order' => 'ID,ANNEE_ID,CODE,UTILISATEUR_CODE,STRUCTURE_ID,STATUT_ID,GRADE_ID,DISCIPLINE_ID,CIVILITE_ID,NOM_USUEL,PRENOM,DATE_NAISSANCE,NOM_PATRONYMIQUE,COMMUNE_NAISSANCE,PAYS_NAISSANCE_ID,DEPARTEMENT_NAISSANCE_ID,PAYS_NATIONALITE_ID,TEL_PRO,TEL_PERSO,EMAIL_PRO,EMAIL_PERSO,ADDR_PRECISIONS,ADDR_NUMERO,ADDR_NUMERO_COMPL_ID,ADDR_VOIRIE_ID,ADDR_VOIE,ADDR_LIEU_DIT,ADDR_CODE_POSTAL,ADDR_COMMUNE,ADDR_PAYS_ID,NUMERO_INSEE,NUMERO_INSEE_PROVISOIRE,IBAN,BIC,RIB_HORS_SEPA,AUTRE_1,AUTRE_2,AUTRE_3,AUTRE_4,AUTRE_5,EMPLOYEUR_ID,MONTANT_INDEMNITE_FC,CRITERE_RECHERCHE,SOURCE_ID,SOURCE_CODE,SYNC_STATUT,SYNC_STRUCTURE,HISTO_CREATION,HISTO_CREATEUR_ID,HISTO_MODIFICATION,HISTO_MODIFICATEUR_ID,HISTO_DESTRUCTION,HISTO_DESTRUCTEUR_ID',
];
......
......@@ -18,7 +18,7 @@ return [
'precision' => 126,
'nullable' => FALSE,
'default' => '1',
'position' => 32,
'position' => 33,
'commentaire' => NULL,
],
'CODE' => [
......@@ -42,7 +42,7 @@ return [
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'position' => 44,
'position' => 9,
'commentaire' => 'Code de correspondance avec le SI RH',
],
'DEPASSEMENT' => [
......@@ -66,7 +66,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 25,
'position' => 26,
'commentaire' => NULL,
],
'DOSSIER_ADRESSE' => [
......@@ -78,7 +78,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '1',
'position' => 35,
'position' => 36,
'commentaire' => NULL,
],
'DOSSIER_CONTACT' => [
......@@ -90,7 +90,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '1',
'position' => 36,
'position' => 37,
'commentaire' => NULL,
],
'DOSSIER_EMAIL_PERSO' => [
......@@ -102,7 +102,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 37,
'position' => 38,
'commentaire' => NULL,
],
'DOSSIER_EMPLOYEUR' => [
......@@ -114,7 +114,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 38,
'position' => 39,
'commentaire' => NULL,
],
'DOSSIER_IBAN' => [
......@@ -126,7 +126,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '1',
'position' => 39,
'position' => 40,
'commentaire' => NULL,
],
'DOSSIER_IDENTITE_COMP' => [
......@@ -138,7 +138,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '1',
'position' => 40,
'position' => 41,
'commentaire' => NULL,
],
'DOSSIER_INSEE' => [
......@@ -150,7 +150,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '1',
'position' => 41,
'position' => 42,
'commentaire' => NULL,
],
'DOSSIER_TEL_PERSO' => [
......@@ -162,7 +162,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 42,
'position' => 43,
'commentaire' => NULL,
],
'HISTO_CREATEUR_ID' => [
......@@ -174,7 +174,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => NULL,
'position' => 10,
'position' => 11,
'commentaire' => NULL,
],
'HISTO_CREATION' => [
......@@ -186,7 +186,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => 'SYSDATE',
'position' => 9,
'position' => 10,
'commentaire' => NULL,
],
'HISTO_DESTRUCTEUR_ID' => [
......@@ -198,7 +198,7 @@ return [
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'position' => 14,
'position' => 15,
'commentaire' => NULL,
],
'HISTO_DESTRUCTION' => [
......@@ -210,7 +210,7 @@ return [
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'position' => 13,
'position' => 14,
'commentaire' => NULL,
],
'HISTO_MODIFICATEUR_ID' => [
......@@ -222,7 +222,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => NULL,
'position' => 12,
'position' => 13,
'commentaire' => NULL,
],
'HISTO_MODIFICATION' => [
......@@ -234,7 +234,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => 'SYSDATE',
'position' => 11,
'position' => 12,
'commentaire' => NULL,
],
'ID' => [
......@@ -282,7 +282,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => NULL,
'position' => 16,
'position' => 17,
'commentaire' => NULL,
],
'ORDRE' => [
......@@ -294,7 +294,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => NULL,
'position' => 15,
'position' => 16,
'commentaire' => NULL,
],
'PEUT_AVOIR_CONTRAT' => [
......@@ -306,7 +306,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 21,
'position' => 22,
'commentaire' => NULL,
],
'PEUT_CHOISIR_DANS_DOSSIER' => [
......@@ -318,7 +318,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => NULL,
'position' => 18,
'position' => 19,
'commentaire' => NULL,
],
'PEUT_CLOTURER_SAISIE' => [
......@@ -330,7 +330,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 26,
'position' => 27,
'commentaire' => NULL,
],
'PEUT_SAISIR_DOSSIER' => [
......@@ -342,7 +342,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => NULL,
'position' => 19,
'position' => 20,
'commentaire' => NULL,
],
'PEUT_SAISIR_MOTIF_NON_PAIEMENT' => [
......@@ -354,7 +354,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 20,
'position' => 21,
'commentaire' => NULL,
],
'PEUT_SAISIR_REFERENTIEL' => [
......@@ -366,7 +366,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 22,
'position' => 23,
'commentaire' => NULL,
],
'PEUT_SAISIR_SERVICE' => [
......@@ -378,7 +378,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => NULL,
'position' => 17,
'position' => 18,
'commentaire' => NULL,
],
'PEUT_SAISIR_SERVICE_EXT' => [
......@@ -390,7 +390,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 28,
'position' => 29,
'commentaire' => NULL,
],
'PLAFOND_HC_FI_HORS_EAD' => [
......@@ -402,7 +402,7 @@ return [
'precision' => 126,
'nullable' => FALSE,
'default' => '9999',
'position' => 30,
'position' => 31,
'commentaire' => NULL,
],
'PLAFOND_HC_HORS_REMU_FC' => [
......@@ -414,7 +414,7 @@ return [
'precision' => 126,
'nullable' => FALSE,
'default' => '9999',
'position' => 23,
'position' => 24,
'commentaire' => NULL,
],
'PLAFOND_HC_REMU_FC' => [
......@@ -426,7 +426,7 @@ return [
'precision' => 126,
'nullable' => FALSE,
'default' => '13502',
'position' => 24,
'position' => 25,
'commentaire' => NULL,
],
'PLAFOND_REFERENTIEL' => [
......@@ -450,7 +450,7 @@ return [
'precision' => 126,
'nullable' => FALSE,
'default' => '9999',
'position' => 33,
'position' => 34,
'commentaire' => NULL,
],
'PLAFOND_REFERENTIEL_SERVICE' => [
......@@ -462,7 +462,7 @@ return [
'precision' => 126,
'nullable' => FALSE,
'default' => '9999',
'position' => 34,
'position' => 35,
'commentaire' => NULL,
],
'SERVICE_STATUTAIRE' => [
......@@ -486,7 +486,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 29,
'position' => 30,
'commentaire' => NULL,
],
'TEM_BIATSS' => [
......@@ -498,7 +498,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 27,
'position' => 28,
'commentaire' => NULL,
],
'TITULAIRE' => [
......@@ -510,7 +510,7 @@ return [
'precision' => 1,
'nullable' => FALSE,
'default' => '0',
'position' => 31,
'position' => 32,
'commentaire' => NULL,
],
'TYPE_INTERVENANT_ID' => [
......
......@@ -30,7 +30,7 @@ return [
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'position' => 12,
'position' => 3,
'commentaire' => NULL,
],
'HISTO_CREATEUR_ID' => [
......@@ -42,7 +42,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => NULL,
'position' => 7,
'position' => 8,
'commentaire' => NULL,
],
'HISTO_CREATION' => [
......@@ -54,7 +54,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => 'SYSDATE',
'position' => 6,
'position' => 7,
'commentaire' => NULL,
],
'HISTO_DESTRUCTEUR_ID' => [
......@@ -66,7 +66,7 @@ return [
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'position' => 11,
'position' => 12,
'commentaire' => NULL,
],
'HISTO_DESTRUCTION' => [
......@@ -78,7 +78,7 @@ return [
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'position' => 10,
'position' => 11,
'commentaire' => NULL,
],
'HISTO_MODIFICATEUR_ID' => [
......@@ -90,7 +90,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => NULL,
'position' => 9,
'position' => 10,
'commentaire' => NULL,
],
'HISTO_MODIFICATION' => [
......@@ -102,7 +102,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => 'SYSDATE',
'position' => 8,
'position' => 9,
'commentaire' => NULL,
],
'ID' => [
......@@ -126,7 +126,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => NULL,
'position' => 3,
'position' => 4,
'commentaire' => NULL,
],
'SOURCE_CODE' => [
......@@ -138,7 +138,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => NULL,
'position' => 5,
'position' => 6,
'commentaire' => NULL,
],
'SOURCE_ID' => [
......@@ -150,7 +150,7 @@ return [
'precision' => NULL,
'nullable' => FALSE,
'default' => NULL,
'position' => 4,
'position' => 5,
'commentaire' => NULL,
],
],
......
......@@ -6,6 +6,7 @@ return [
'ADRESSE_NUMERO_COMPL' => [
'ID',
'CODE',
'CODE_RH',
'LIBELLE',
],
'AFFECTATION' => [
......@@ -769,6 +770,8 @@ return [
'HISTO_MODIFICATEUR_ID',
'HISTO_DESTRUCTION',
'HISTO_DESTRUCTEUR_ID',
'AFFECTATION_FIN',
'EXPORT_DATE',
],
'INTERVENANT_DOSSIER' => [
'ID',
......@@ -1218,6 +1221,7 @@ return [
'MAXIMUM_HETD',
'TYPE_INTERVENANT_ID',
'CODE',
'CODE_RH',
'HISTO_CREATION',
'HISTO_CREATEUR_ID',
'HISTO_MODIFICATION',
......@@ -1814,6 +1818,7 @@ return [
'VOIRIE' => [
'ID',
'CODE',
'CODE_RH',
'LIBELLE',
'SOURCE_ID',
'SOURCE_CODE',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment