Commit 5906cb9324efbb68f7ff6c96ee08717c7929c04a
1 parent
6d135a7a
Exists in
master
and in
21 other branches
Atualização de identificadores da versão 1.1.13
Showing
2 changed files
with
16 additions
and
2 deletions
Show diff stats
PENIntegracao.php
@@ -11,7 +11,7 @@ class PENIntegracao extends SeiIntegracao { | @@ -11,7 +11,7 @@ class PENIntegracao extends SeiIntegracao { | ||
11 | } | 11 | } |
12 | 12 | ||
13 | public function getVersao() { | 13 | public function getVersao() { |
14 | - return '1.1.12'; | 14 | + return '1.1.13'; |
15 | } | 15 | } |
16 | 16 | ||
17 | public function getInstituicao() { | 17 | public function getInstituicao() { |
sip_atualizar_versao_modulo_pen.php
@@ -94,6 +94,7 @@ class PenAtualizarSipRN extends InfraRN { | @@ -94,6 +94,7 @@ class PenAtualizarSipRN extends InfraRN { | ||
94 | case '1.1.9': $this->instalarV1110(); | 94 | case '1.1.9': $this->instalarV1110(); |
95 | case '1.1.10': $this->instalarV1111(); | 95 | case '1.1.10': $this->instalarV1111(); |
96 | case '1.1.11': $this->instalarV1112(); | 96 | case '1.1.11': $this->instalarV1112(); |
97 | + case '1.1.12': $this->instalarV1113(); | ||
97 | 98 | ||
98 | break; | 99 | break; |
99 | default: | 100 | default: |
@@ -1038,7 +1039,20 @@ class PenAtualizarSipRN extends InfraRN { | @@ -1038,7 +1039,20 @@ class PenAtualizarSipRN extends InfraRN { | ||
1038 | $objInfraParametroBD->alterar($objInfraParametroDTO); | 1039 | $objInfraParametroBD->alterar($objInfraParametroDTO); |
1039 | } | 1040 | } |
1040 | 1041 | ||
1041 | - | 1042 | + /** |
1043 | + * Instala/Atualiza os módulo PEN para versão 1.1.13 | ||
1044 | + */ | ||
1045 | + protected function instalarV1113() | ||
1046 | + { | ||
1047 | + //Corrigir a versão do módulo no banco de dados | ||
1048 | + $objInfraParametroDTO = new InfraParametroDTO(); | ||
1049 | + $objInfraParametroDTO->setStrNome(self::PARAMETRO_VERSAO_MODULO); | ||
1050 | + $objInfraParametroDTO->retTodos(); | ||
1051 | + $objInfraParametroBD = new InfraParametroBD(BancoSip::getInstance()); | ||
1052 | + $objInfraParametroDTO = $objInfraParametroBD->consultar($objInfraParametroDTO); | ||
1053 | + $objInfraParametroDTO->setStrValor('1.1.13'); | ||
1054 | + $objInfraParametroBD->alterar($objInfraParametroDTO); | ||
1055 | + } | ||
1042 | } | 1056 | } |
1043 | 1057 | ||
1044 | try { | 1058 | try { |