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