diff --git a/src/db/migration/V20220318_1005__mantis24167.sql b/src/db/migration/V20220318_1005__mantis24167.sql new file mode 100644 index 000000000..0a49aeb6f --- /dev/null +++ b/src/db/migration/V20220318_1005__mantis24167.sql @@ -0,0 +1,17 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval, ''TIMEOUT_BPE'', ''TIMEOUT_BPE'', ''300'', ''1'', ''1'', ''1'', sysdate, ''1'')'; + exception when dup_val_on_index then null; +end; +/ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval, ''TRATAR_STATUS_539'', ''TRATAR_STATUS_539'', ''false'', ''1'', ''1'', ''1'', sysdate, ''1'')'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20220318_1011__mantis24167.sql b/src/db/migration/V20220318_1011__mantis24167.sql new file mode 100644 index 000000000..5633722f0 --- /dev/null +++ b/src/db/migration/V20220318_1011__mantis24167.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE BPE ADD (CHBPE_ORIGINAL VARCHAR2(44 BYTE))'; + exception when column_exists then null; +end;