Merge pull request 'fixes bug#AL-4214' (!167) from AL-4214 into master

Reviewed-on: utilidades/Flyway#167
Reviewed-by: wallace <wallace@rjconsultores.com.br>
master
Célio de Souza Ribeiro JR 2024-08-09 18:33:35 +00:00
commit 3217279238
2 changed files with 37 additions and 31 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>Flyway</artifactId>
<version>1.79.1</version>
<version>1.79.2</version>
<distributionManagement>
<repository>

View File

@ -4,9 +4,14 @@ DECLARE
PRAGMA EXCEPTION_INIT(dup_val_on_index, -00001);
PRAGMA EXCEPTION_INIT(except_02291, -02291);
col_exists NUMBER := 0;
BEGIN
SELECT COUNT(*) INTO col_exists FROM all_tab_columns
WHERE table_name = 'TIPO_EVENTO_EXTRA'
AND column_name = 'INDQUANTVIASIMPRIMIR';
IF col_exists = 0 THEN
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE tipo_evento_extra ADD (indquantviasimprimir NUMBER(1) DEFAULT 1)';
EXCEPTION
@ -35,5 +40,6 @@ BEGIN
WHEN OTHERS THEN
RAISE;
END;
END IF;
END;
/