Merge pull request 'AL-1231' (#2) from AL-1231 into master
Reviewed-on: http://18.235.188.113:3000/utilidades/Flyway/pulls/2 Reviewed-by: Julio Heredia <julio@rjconsultores.com.br> Reviewed-by: Gleison da Cruz <gleison.cruz@totvs.com.br> Reviewed-by: wallace <wallace@rjconsultores.com.br>master
commit
6097084d36
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>Flyway</artifactId>
|
||||
<version>1.0.3</version>
|
||||
<version>1.0.4</version>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate
|
||||
'CREATE SEQUENCE ADYEN_SERVICE_SEQ MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 NOCACHE ORDER CYCLE';
|
||||
exception when object_exists then null;
|
||||
end;
|
||||
/
|
||||
declare
|
||||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01430);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE ESTACION_SITEF ADD (NUMERODESERIE VARCHAR2(100) )';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
declare
|
||||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01430);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE ESTACION_SITEF ADD (DESCRICAO VARCHAR2(100) )';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
declare
|
||||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01430);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE MONEDA ADD (SIGLA VARCHAR2(3) )';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate
|
||||
'CREATE TABLE EMPRESA_ADYEN_CONFIG
|
||||
(
|
||||
EMPRESAADYENCONFIG_ID NUMBER(8, 0) NOT NULL
|
||||
, EMPRESA_ID NUMBER(7, 0)
|
||||
, APIKEY VARCHAR2(255)
|
||||
, INDPRODUCAO NUMBER(1, 0)
|
||||
, ACTIVO NUMBER(1, 0)
|
||||
, FECMODIF DATE
|
||||
, USUARIO_ID NUMBER(7, 0)
|
||||
) ';
|
||||
exception when object_exists then null;
|
||||
end;
|
||||
/
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'CREATE SEQUENCE "EMPRESA_ADYEN_CONFIG_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER';
|
||||
exception when object_exists then null;
|
||||
end;
|
Loading…
Reference in New Issue