Commit 3ec2262420d3fb9255fc4f32d45325f5775e855f
1 parent
ec7dbadd
Exists in
master
and in
8 other branches
Preparação dos scritps e atualização da versão do módulo para 1.2.2
Showing
2 changed files
with
27 additions
and
1 deletions
Show diff stats
rn/PenAtualizarSeiRN.php
| ... | ... | @@ -67,6 +67,7 @@ class PenAtualizarSeiRN extends PenAtualizadorRN { |
| 67 | 67 | case '1.1.16': $this->instalarV1117(); |
| 68 | 68 | case '1.1.17': $this->instalarV1200(); |
| 69 | 69 | case '1.2.0': $this->instalarV1201(); |
| 70 | + case '1.2.1': $this->instalarV1202(); | |
| 70 | 71 | |
| 71 | 72 | break; |
| 72 | 73 | default: |
| ... | ... | @@ -1552,4 +1553,14 @@ class PenAtualizarSeiRN extends PenAtualizadorRN { |
| 1552 | 1553 | $objInfraParametroBD->alterar($objInfraParametroDTO); |
| 1553 | 1554 | } |
| 1554 | 1555 | |
| 1556 | + /* Contêm atualizações da versao 1.2.2 do módulo */ | |
| 1557 | + protected function instalarV1202() | |
| 1558 | + { | |
| 1559 | + //altera o parâmetro da versão de banco | |
| 1560 | + $objInfraParametroBD = new InfraParametroBD(BancoSEI::getInstance()); | |
| 1561 | + $objInfraParametroDTO = new InfraParametroDTO(); | |
| 1562 | + $objInfraParametroDTO->setStrNome(self::PARAMETRO_VERSAO_MODULO); | |
| 1563 | + $objInfraParametroDTO->setStrValor('1.2.2'); | |
| 1564 | + $objInfraParametroBD->alterar($objInfraParametroDTO); | |
| 1565 | + } | |
| 1555 | 1566 | } | ... | ... |
sip_atualizar_versao_modulo_pen.php
| ... | ... | @@ -101,7 +101,8 @@ class PenAtualizarSipRN extends InfraRN { |
| 101 | 101 | case '1.1.15': $this->instalarV1116(); |
| 102 | 102 | case '1.1.16': $this->instalarV1117(); |
| 103 | 103 | case '1.1.17': $this->instalarV1200(); |
| 104 | - case '1.1.20': $this->instalarV1201(); | |
| 104 | + case '1.2.0': $this->instalarV1201(); | |
| 105 | + case '1.2.1': $this->instalarV1202(); | |
| 105 | 106 | |
| 106 | 107 | break; |
| 107 | 108 | default: |
| ... | ... | @@ -1151,6 +1152,20 @@ class PenAtualizarSipRN extends InfraRN { |
| 1151 | 1152 | $objInfraParametroDTO->setStrValor('1.2.1'); |
| 1152 | 1153 | $objInfraParametroBD->alterar($objInfraParametroDTO); |
| 1153 | 1154 | } |
| 1155 | + | |
| 1156 | + /** | |
| 1157 | + * Instala/Atualiza os módulo PEN para versão 1.2.2 | |
| 1158 | + */ | |
| 1159 | + protected function instalarV1202() | |
| 1160 | + { | |
| 1161 | + $objInfraParametroDTO = new InfraParametroDTO(); | |
| 1162 | + $objInfraParametroDTO->setStrNome(self::PARAMETRO_VERSAO_MODULO); | |
| 1163 | + $objInfraParametroDTO->retTodos(); | |
| 1164 | + $objInfraParametroBD = new InfraParametroBD(BancoSip::getInstance()); | |
| 1165 | + $objInfraParametroDTO = $objInfraParametroBD->consultar($objInfraParametroDTO); | |
| 1166 | + $objInfraParametroDTO->setStrValor('1.2.2'); | |
| 1167 | + $objInfraParametroBD->alterar($objInfraParametroDTO); | |
| 1168 | + } | |
| 1154 | 1169 | } |
| 1155 | 1170 | |
| 1156 | 1171 | try { | ... | ... |