
 
 
 
 
 
 
 DROP INDEX IF EXISTS VPX_VDEVICE_BACKING_REL_U1;
 /
 ALTER TABLE VPX_VDEVICE_BACKING_REL DROP CONSTRAINT IF EXISTS FK_VPX_VDEVICE_BACKING_REL;
 /
 ALTER TABLE VPX_VDEVICE_BACKING_REL ADD CONSTRAINT FK_VPX_VDEVICE_BACKING_REL FOREIGN KEY (VM_ID) REFERENCES VPX_VM (ID) ON DELETE CASCADE;
 /
 ALTER TABLE VPX_VDEVICE_BACKING_REL DROP COLUMN IF EXISTS VDEVICE_ID;
 /
 ALTER TABLE VPX_VDEVICE_BACKING_REL DROP COLUMN IF EXISTS UUID;
 /
 ALTER TABLE VPX_VDEVICE_BACKING_REL DROP COLUMN IF EXISTS CHANGE_ID;
 /
 ALTER TABLE VPX_VDEVICE_BACKING_REL DROP COLUMN IF EXISTS DEVICE_NAME;
 /
 DROP INDEX IF EXISTS VPX_SN_VDEVICE_BACKING_REL_U1;
 /
 ALTER TABLE VPX_SN_VDEVICE_BACKING_REL DROP CONSTRAINT IF EXISTS FK_SN_VPX_VDEVICE_BACKING_REL;
 /
 ALTER TABLE VPX_SN_VDEVICE_BACKING_REL ADD CONSTRAINT FK_SN_VPX_VDEVICE_BACKING_REL FOREIGN KEY(SN_ID) REFERENCES VPX_SNAPSHOT (ID) ON DELETE CASCADE;
 /
 ALTER TABLE VPX_SN_VDEVICE_BACKING_REL DROP COLUMN IF EXISTS VDEVICE_ID;
 /
 ALTER TABLE VPX_SN_VDEVICE_BACKING_REL DROP COLUMN IF EXISTS UUID;
 /
 ALTER TABLE VPX_SN_VDEVICE_BACKING_REL DROP COLUMN IF EXISTS CHANGE_ID;
 /
 ALTER TABLE VPX_SN_VDEVICE_BACKING_REL DROP COLUMN IF EXISTS DEVICE_NAME;
 /
 CREATE INDEX IDX_SN_VDEVICE_BACKING_REL ON VPX_SN_VDEVICE_BACKING_REL(SN_ID);
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING DROP COLUMN IF EXISTS BACKING_OBJECT_ID;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING DROP COLUMN IF EXISTS BACKING_OBJECT_ID;
 /
 DROP INDEX IF EXISTS VPX_VDEVICE_FILE_BACKING_X_M1;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEV_BACKING_SPACE_USED_IN;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEVICE_BACKING_DISK_MODE;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEV_BACKING_WRITE_THROUGH_FLG;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS EAGERLY_SCRUB;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEV_BACKING_SPLIT_FLG;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEVICE_BACKING_UUID;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEV_BAC_THIN_PROVISIONED_FLG;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEV_BAC_COMPAT_MODE;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DIGEST_ENABLED;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS GRAIN_SIZE;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DELTA_GRAIN_SIZE;
 /
 ALTER TABLE VPX_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DELTA_DISK_FORMAT_VARIANT;
 /
 DROP INDEX IF EXISTS VPX_SN_VDEVICE_FILE_BKG_X_M1;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEV_BACKING_SPACE_USED_IN;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEVICE_BACKING_DISK_MODE;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEV_BACKING_WRITE_THROUGH_FLG;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS EAGERLY_SCRUB;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEV_BACKING_SPLIT_FLG;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEVICE_BACKING_UUID;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEV_BAC_THIN_PROVISIONED_FLG;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DEV_BAC_COMPAT_MODE;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DIGEST_ENABLED;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS GRAIN_SIZE;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DELTA_GRAIN_SIZE;
 /
 ALTER TABLE VPX_SN_VDEVICE_FILE_BACKING_X DROP COLUMN IF EXISTS DELTA_DISK_FORMAT_VARIANT;
 /
 DROP SEQUENCE IF EXISTS VPX_VIRTUAL_DEVICE_SEQ;
 /
 DROP SEQUENCE IF EXISTS VPX_SN_VIRTUAL_DEVICE_SEQ;
 /
 DROP TABLE IF EXISTS VPX_SN_VIRTUAL_USBCONTROLLER;
 /
 DROP TABLE IF EXISTS VPX_SN_VIRTUAL_SATACONTROLLER;
 /
 DROP TABLE IF EXISTS VPX_SN_VIRTUAL_SCSICONTROLLER;
 /
 DROP TABLE IF EXISTS VPX_SN_VIRTUAL_CONTROLLER;
 /
 DROP TABLE IF EXISTS VPX_SN_VIRTUAL_VIDEO_CARD;
 /
 DROP TABLE IF EXISTS VPX_SN_VIRTUAL_VMCIDEVICE;
 /
 DROP TABLE IF EXISTS VPX_SN_VIRTUAL_USB;
 /
 DROP TABLE IF EXISTS VPX_SN_VIRTUAL_SERIAL_PORT;
 /
 DROP TABLE IF EXISTS VPX_SN_VSRIOV_ETHERNET_CARD;
 /
 DROP TABLE IF EXISTS VPX_SN_VIRTUAL_ETHERNET_CARD;
 /
 DROP TABLE IF EXISTS VPX_SN_VIRTUAL_DISK;
 /
 DROP TABLE IF EXISTS VPX_SN_OPAQUE_NET_BACKING;
 /
 DROP TABLE IF EXISTS VPX_SN_DISTR_VPORT_BACKING;
 /
 DROP TABLE IF EXISTS VPX_SN_VDEVICE_PIPE_BACKING;
 /
 DROP TABLE IF EXISTS VPX_SN_VD_DEVICE_BACKING_X;
 /
 DROP TABLE IF EXISTS VPX_SN_VDEVICE_DEVICE_BACKING;
 /
 DROP TABLE IF EXISTS VPX_SN_VDEVICE_PLUGIN_BACKING;
 /
 DROP TABLE IF EXISTS VPX_SN_VIRTUAL_DEVICE;
 /
 DROP TABLE IF EXISTS VPX_VIRTUAL_USBCONTROLLER;
 /
 DROP TABLE IF EXISTS VPX_VIRTUAL_SATACONTROLLER;
 /
 DROP TABLE IF EXISTS VPX_VIRTUAL_SCSICONTROLLER;
 /
 DROP TABLE IF EXISTS VPX_VIRTUAL_CONTROLLER;
 /
 DROP TABLE IF EXISTS VPX_VIRTUAL_VIDEO_CARD;
 /
 DROP TABLE IF EXISTS VPX_VIRTUAL_VMCIDEVICE;
 /
 DROP TABLE IF EXISTS VPX_VIRTUAL_USB;
 /
 DROP TABLE IF EXISTS VPX_VIRTUAL_SERIAL_PORT;
 /
 DROP TABLE IF EXISTS VPX_VSRIOV_ETHERNET_CARD;
 /
 DROP TABLE IF EXISTS VPX_VIRTUAL_ETHERNET_CARD;
 /
 DROP TABLE IF EXISTS VPX_VIRTUAL_DISK;
 /
 DROP TABLE IF EXISTS VPX_OPAQUE_NET_BACKING;
 /
 DROP TABLE IF EXISTS VPX_DISTR_VPORT_BACKING;
 /
 DROP TABLE IF EXISTS VPX_VDEVICE_PIPE_BACKING;
 /
 DROP TABLE IF EXISTS VPX_VDEVICE_DEVICE_BACKING_X;
 /
 DROP TABLE IF EXISTS VPX_VDEVICE_DEVICE_BACKING;
 /
 DROP TABLE IF EXISTS VPX_VDEVICE_PLUGIN_BACKING;
 /
 DROP TABLE IF EXISTS VPX_VIRTUAL_DEVICE;
 /
 
