alter table venpagovalores disable constraint VENPAGO_PAGOVAL_FK; update venpagovalores set documento=documento+10000000; alter table venpagodocumentos disable constraint VENPAGO_PAGODOC_FK; update venpagodocumentos set documento=documento+10000000; alter table venfactura disable constraint VENPAGO_FACTURA_FK; update venpago set documento=documento+10000000; update venfactura set pago=pago+10000000 where pago is not null; alter table vendetfactura disable constraint VENFACTURA_DETFAC_FK; update vendetfactura set documento=documento+10000000; alter table vendevolucion disable constraint VENFACTURA_DEV_FK; update venfactura set documento=documento+10000000; update vendevolucion set factura=factura+10000000; alter table vendetdevolucion disable constraint VENDEVOLUCION_DETDEV_FK; update vendetdevolucion set documento=documento+10000000; update vendevolucion set documento=documento+10000000; alter table venpagovalores enable constraint VENPAGO_PAGOVAL_FK; alter table venpagodocumentos enable constraint VENPAGO_PAGODOC_FK; alter table venfactura enable constraint VENPAGO_FACTURA_FK; alter table vendetfactura enable constraint VENFACTURA_DETFAC_FK; alter table vendevolucion enable constraint VENFACTURA_DEV_FK; alter table vendetdevolucion enable constraint VENDEVOLUCION_DETDEV_FK; alter table veneventoalisto disable constraint VENALISTO_EVENTO_FK; update veneventoalisto set documento=documento+10000000; update venalisto set documento=documento+10000000; alter table veneventoalisto enable constraint VENALISTO_EVENTO_FK;