From 584112d29eb6b3954a246b8cc95a9f072b046832 Mon Sep 17 00:00:00 2001 From: julio Date: Wed, 25 Aug 2021 21:31:38 +0000 Subject: [PATCH] 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 --- src/db/migration/V20210823_1813__jira283.sql | 26 ++++++++++++++++++++ src/db/migration/V20210825_1156__jira283.sql | 16 ++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 src/db/migration/V20210823_1813__jira283.sql create mode 100644 src/db/migration/V20210825_1156__jira283.sql diff --git a/src/db/migration/V20210823_1813__jira283.sql b/src/db/migration/V20210823_1813__jira283.sql new file mode 100644 index 000000000..cc914d647 --- /dev/null +++ b/src/db/migration/V20210823_1813__jira283.sql @@ -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; +/ diff --git a/src/db/migration/V20210825_1156__jira283.sql b/src/db/migration/V20210825_1156__jira283.sql new file mode 100644 index 000000000..a41ea0dce --- /dev/null +++ b/src/db/migration/V20210825_1156__jira283.sql @@ -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; +/ \ No newline at end of file