diff --git a/src/db/migration/V20170824_1626__mantis9525.sql b/src/db/migration/V20170824_1626__mantis9525.sql new file mode 100644 index 000000000..d301ba2d5 --- /dev/null +++ b/src/db/migration/V20170824_1626__mantis9525.sql @@ -0,0 +1,8 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE BOLETO ADD (CLIENTECOMPRADOR_ID NUMBER(7) )'; + exception when object_exists then null; +end; + diff --git a/src/db/migration/V20170825_1416__mantis9525.sql b/src/db/migration/V20170825_1416__mantis9525.sql new file mode 100644 index 000000000..8ed194bc1 --- /dev/null +++ b/src/db/migration/V20170825_1416__mantis9525.sql @@ -0,0 +1,8 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE CAJA ADD (CLIENTECOMPRADOR_ID NUMBER(7))'; + exception when object_exists then null; +end; + diff --git a/src/db/migration/V20170825_1559__mantis9525.sql b/src/db/migration/V20170825_1559__mantis9525.sql new file mode 100644 index 000000000..8e6b72478 --- /dev/null +++ b/src/db/migration/V20170825_1559__mantis9525.sql @@ -0,0 +1,11 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate + 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) values + (FUNCION_SISTEMA_SEQ.NEXTVAL,''1'',''VDA > GRC >> CLIENTE COMPRADOR'',''VDA.GRC.CLIENTECOMPRADOR'',''1'',sysdate,''1'')'; + exception when dup_val_on_index then null; +end; + +