---BONIFICA DELLE RICHIESTE DA VALIDATA IN ACCETTATA
UPDATE MNP_GEST_RICH_DONOR_VIRT SET STATO = 13 WHERE STATO = 6;
UPDATE MNP_GEST_RICH_REC_VIRT SET STATO = 13 WHERE STATO = 6;

--BONIFICA NUOVI CAMPI
ALTER TABLE MNP_GEST_RICH_DONOR_VIRT PARALLEL 4;
UPDATE MNP_GEST_RICH_DONOR_VIRT SET DA_NOTIFICARE_NPTS = 0 ;
UPDATE MNP_GEST_RICH_DONOR_VIRT SET ESPLETAMENTODONATING = 0 ;
ALTER TABLE MNP_GEST_RICH_DONOR_VIRT MODIFY (
DA_NOTIFICARE_NPTS NOT NULL);
ALTER TABLE MNP_GEST_RICH_DONOR_VIRT MODIFY (
ESPLETAMENTODONATING NOT NULL);
ALTER TABLE MNP_GEST_RICH_DONOR_VIRT NOPARALLEL ;

ALTER TABLE MNP_GEST_RICH_REC_VIRT PARALLEL 4;
UPDATE MNP_GEST_RICH_REC_VIRT SET DA_NOTIFICARE_NPTS = 0 ;
UPDATE MNP_GEST_RICH_REC_VIRT SET ESPLETAMENTODONATING = 0 ;
ALTER TABLE MNP_GEST_RICH_REC_VIRT MODIFY (
DA_NOTIFICARE_NPTS NOT NULL);
ALTER TABLE MNP_GEST_RICH_REC_VIRT MODIFY (
ESPLETAMENTODONATING NOT NULL);
ALTER TABLE MNP_GEST_RICH_REC_VIRT NOPARALLEL ;

COMMIT;