bug#al-2213

Ouro e Prata - Espec_-_Bloquear-Desbloquear_desconto_via_API
dev:
qua:
master
valdir.cordeiro 2023-03-13 16:53:04 -03:00
parent 80451a7e8c
commit 9d0688c885
3 changed files with 27 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.24</version> <version>1.0.25</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

View File

@ -0,0 +1,15 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDBLOQUEARDESCONTOAPI 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 PUNTO_VENTA ADD INDBLOQUEARDESCONTOWEB NUMBER(1,0)' ;
exception when column_exists then null;
end;

View File

@ -0,0 +1,11 @@
DO $$
BEGIN
ALTER TABLE PUNTO_VENTA ADD INDBLOQUEARDESCONTOAPI NUMBER(1,0);
END
$$;
/
DO $$
BEGIN
ALTER TABLE PUNTO_VENTA ADD INDBLOQUEARDESCONTOWEB NUMBER(1,0);
END
$$;