Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
OSE
Commits
1b4c6643
Commit
1b4c6643
authored
5 years ago
by
Laurent Lecluse
Browse files
Options
Downloads
Patches
Plain Diff
Ajout du calcul des TBLS dans le script de migration
parent
d249af20
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
admin/actions/test.php
+24
-1
24 additions, 1 deletion
admin/actions/test.php
admin/migration/PJPassageDureeVie.php
+4
-4
4 additions, 4 deletions
admin/migration/PJPassageDureeVie.php
with
28 additions
and
5 deletions
admin/actions/test.php
+
24
−
1
View file @
1b4c6643
...
...
@@ -26,6 +26,17 @@ var_dump($r);
$bdd
=
$oa
->
getBdd
();
$c
->
println
(
"Calcul du tableau de bord piece_jointe_demande"
);
$bdd
->
exec
(
'BEGIN unicaen_tbl.calculer(\'piece_jointe_demande\'); END;'
);
$c
->
println
(
"Calcul du tableau de bord piece_jointe_fournie"
);
$bdd
->
exec
(
'BEGIN unicaen_tbl.calculer(\'piece_jointe_fournie\'); END;'
);
$c
->
println
(
"Calcul du tableau de bord piece_jointe"
);
$bdd
->
exec
(
'BEGIN unicaen_tbl.calculer(\'piece_jointe\'); END;'
);
$c
->
println
(
""
);
/* On fournie et on valide de force les PJ qui n'étaient pas tout le temps demandées avant */
$sql
=
'
SELECT
...
...
@@ -80,5 +91,17 @@ foreach ($r as $i) {
$bdd
->
getTable
(
'PIECE_JOINTE_FICHIER'
)
->
insert
(
$pjf
,
$o
);
$c
->
print
(
"Insertion des pièces jointes manquantes :
$count
/ "
.
count
(
$r
)
.
"
\r
"
);
}
$c
->
println
(
"
\n
Insertion terminée"
);
$c
->
println
(
"Calcul du tableau de bord piece_jointe_demande"
);
$bdd
->
exec
(
'BEGIN unicaen_tbl.calculer(\'piece_jointe_demande\'); END;'
);
$c
->
println
(
"Calcul du tableau de bord piece_jointe_fournie"
);
$bdd
->
exec
(
'BEGIN unicaen_tbl.calculer(\'piece_jointe_fournie\'); END;'
);
$c
->
println
(
"Calcul du tableau de bord piece_jointe"
);
$bdd
->
exec
(
'BEGIN unicaen_tbl.calculer(\'piece_jointe\'); END;'
);
$c
->
println
(
"Calcul du tableau de bord workflow"
);
$bdd
->
exec
(
'BEGIN unicaen_tbl.calculer(\'workflow\'); END;'
);
$c
->
println
(
"Terminé"
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
admin/migration/PJPassageDureeVie.php
+
4
−
4
View file @
1b4c6643
...
...
@@ -122,16 +122,16 @@ class PJPassageDureeVie extends AbstractMigration
$this
->
manager
->
getOseAdmin
()
->
getConsole
()
->
print
(
"Insertion des pièces jointes manquantes :
$count
/ "
.
count
(
$r
)
.
"
\r
"
);
}
$this
->
manager
->
getOseAdmin
()
->
getConsole
()
->
println
(
"
C
alcul du tableau de bord piece_jointe_demande"
);
$this
->
manager
->
getOseAdmin
()
->
getConsole
()
->
println
(
"
Nouveau c
alcul du tableau de bord piece_jointe_demande"
);
$bdd
->
exec
(
'BEGIN unicaen_tbl.calculer(\'piece_jointe_demande\'); END;'
);
$this
->
manager
->
getOseAdmin
()
->
getConsole
()
->
println
(
"
C
alcul du tableau de bord piece_jointe_fournie"
);
$this
->
manager
->
getOseAdmin
()
->
getConsole
()
->
println
(
"
Nouveau c
alcul du tableau de bord piece_jointe_fournie"
);
$bdd
->
exec
(
'BEGIN unicaen_tbl.calculer(\'piece_jointe_fournie\'); END;'
);
$this
->
manager
->
getOseAdmin
()
->
getConsole
()
->
println
(
"
C
alcul du tableau de bord piece_jointe"
);
$this
->
manager
->
getOseAdmin
()
->
getConsole
()
->
println
(
"
Nouveau c
alcul du tableau de bord piece_jointe"
);
$bdd
->
exec
(
'BEGIN unicaen_tbl.calculer(\'piece_jointe\'); END;'
);
$this
->
manager
->
getOseAdmin
()
->
getConsole
()
->
println
(
"
C
alcul du tableau de bord workflow"
);
$this
->
manager
->
getOseAdmin
()
->
getConsole
()
->
println
(
"
Nouveau c
alcul du tableau de bord workflow"
);
$bdd
->
exec
(
'BEGIN unicaen_tbl.calculer(\'workflow\'); END;'
);
$this
->
manager
->
getOseAdmin
()
->
getConsole
()
->
println
(
"Terminé"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment