fixes bug#23116

dev:Lucas
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@108482 d1611594-4594-4d17-8e1d-87c2c4800839
master
julio 2021-08-25 21:31:38 +00:00
parent 5125f2cf0e
commit 584112d29e
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,26 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate
'CREATE TABLE GP_PRICING_PRIORIDADE
(PRICINGPRIORIDADE_ID NUMBER(7,0) NOT NULL ENABLE,
RUTA_ID NUMBER(7,0),
ACTIVO NUMBER(1,0),
FECMODIF DATE,
USUARIO_ID NUMBER(7,0),
CONSTRAINT PK_GP_PRICING_PRIORIDADE PRIMARY KEY (PRICINGPRIORIDADE_ID)
)';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate
'CREATE SEQUENCE GP_PRICING_PRIORIDADE_SEQ MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
exception when object_exists then null;
end;
/

View File

@ -0,0 +1,16 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE GP_PRICING ADD (PORCENTAJEEXTRA NUMBER(7,2))';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE GP_PRICING ADD (TIPOEVENTOEXTRA_ID NUMBER(7,0))';
exception when column_exists then null;
end;
/