diff --git a/src/db/migration/V20171226_0953__mantis10399.sql b/src/db/migration/V20171226_0953__mantis10399.sql new file mode 100644 index 000000000..3c6836d69 --- /dev/null +++ b/src/db/migration/V20171226_0953__mantis10399.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE MOTIVO_CANCELACION ADD INDEXIBECANCEL NUMBER(1)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20171226_0954__mantis10399.sql b/src/db/migration/V20171226_0954__mantis10399.sql new file mode 100644 index 000000000..583914a7e --- /dev/null +++ b/src/db/migration/V20171226_0954__mantis10399.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'UPDATE MOTIVO_CANCELACION SET INDEXIBECANCEL = 1, FECMODIF = SYSDATE WHERE MOTIVOCANCELACION_ID IN (32,31,37,36)'; + exception when column_exists then null; +end; \ No newline at end of file