Merge pull request 'AL-2209' (#29) from AL-2209 into master

Reviewed-on: http://18.235.188.113:3000/utilidades/Flyway/pulls/29
Reviewed-by: Gleison da Cruz <gleison.cruz@totvs.com.br>
master
pinheiro 2023-03-31 12:49:57 +00:00
commit e5732756fd
3 changed files with 47 additions and 1 deletions

View File

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

View File

@ -0,0 +1,23 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FORMA_PAGO ADD (INDPERCENTUALDESCONTO NUMBER(1,0))';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FORMA_PAGO ADD (VALORDESCONTO NUMBER(10,0))';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FORMA_PAGO ADD (PERCENTUALDESCONTO NUMBER(10,0))';
exception when column_exists then null;
end;

View File

@ -0,0 +1,23 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FORMA_PAGO ADD (INDPERCENTUALDESCONTO NUMBER(1,0))';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FORMA_PAGO ADD (VALORDESCONTO NUMBER(10,0))';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FORMA_PAGO ADD (PERCENTUALDESCONTO NUMBER(10,0))';
exception when column_exists then null;
end;