diff --git a/src/db/migration/V20210930_1652__mantis23332.sql b/src/db/migration/V20210930_1652__mantis23332.sql new file mode 100644 index 000000000..1e364cb4b --- /dev/null +++ b/src/db/migration/V20210930_1652__mantis23332.sql @@ -0,0 +1,7 @@ +declare + begin + execute immediate 'INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval, ''ORGAO_CONCEDENTE_BPE_AGEPAN_MS'', ''ID DO ORGAO CONCEDENTE BPE AGEPAN - MS'', '''', ''1'', ''1'', ''1'', sysdate, ''1'')'; + exception when others then null; +end; +/ \ No newline at end of file diff --git a/src/db/migration/V20211005_1425__mantis23333.sql b/src/db/migration/V20211005_1425__mantis23333.sql new file mode 100644 index 000000000..b1b228c49 --- /dev/null +++ b/src/db/migration/V20211005_1425__mantis23333.sql @@ -0,0 +1,24 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE PARADA_COD_ORGAOCONCEDENTE ADD (ACTIVO 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 PARADA_COD_ORGAOCONCEDENTE ADD (FECMODIF DATE)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE PARADA_COD_ORGAOCONCEDENTE ADD (USUARIO_ID NUMBER(7,0))'; + exception when column_exists then null; +end; +/ \ No newline at end of file