Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
25f6906a
Commit
25f6906a
authored
Jul 01, 2021
by
Laurent Lécluse
Browse files
Correction bug d'update de mv_ext_service suite ajout code_rh dans v_export_service
parent
57a2cbcc
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
25f6906a
# Versions stables
[
OSE 15.
4
](
#ose-15
4-3006
2021
)
[
OSE 15.
5
](
#ose-15
5-0107
2021
)
[
OSE 14.20
](
#ose-1420-09062021
)
...
...
@@ -16,6 +16,14 @@ Objectif : Connecteur import Actul+ & système différentiel pour comparer des c
# OSE 15.5 (01/07/2021)
## Correction de bug
*
Correction d'un problème lié à la v15.4 : l'ajout d'une colonne dans l'export des service mettait en erreur la vue matérisée mv_ext_service.
# OSE 15.4 (30/06/2021)
...
...
admin/migration/MigrationESCodeRh.php
0 → 100644
View file @
25f6906a
<?php
class
MigrationESCodeRh
extends
AbstractMigration
{
protected
$contexte
=
self
::
CONTEXTE_PRE
;
public
function
description
():
string
{
return
"Suppression de la vue métérialisée MX_EXT_SERVICE, qui sera recréée ensuite avec une nouvelle colonne"
;
}
public
function
utile
():
bool
{
try
{
$oa
->
getBdd
()
->
exec
(
'SELECT intervenant_code_rh FROM v_export_service WHERE 1=0'
);
// colonne trouvée => pas besoin de pêter mv_ext_service
return
false
;
}
catch
(
\
Exception
$e
)
{
// colonne non trouvée => on supprimera la MV_ext_service
return
true
;
}
return
$this
->
manager
->
hasNew
(
'table'
,
'DOSSIER_CHAMP_AUTRE'
);
}
public
function
action
(
string
$contexte
)
{
$this
->
manager
->
getBdd
()
->
exec
(
'DROP MATERIALIZED VIEW MV_EXT_SERVICE'
);
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment