tdis_resolve_batch_conflict


Description

Selects which conflicting files should be chosen as current from amongst multiple possible uploads. This function accepts a TDIS Identifier and the upload batch id which corresponds to the unique upload directory name into which the upload files have been saved. It then archives the files associated with the same TDIS Identifier, but not in that upload batch. It also makes sure that any previously archived files associated with the desired batch are unarchived.

select * from tdis_resolve_batch_conflict('TM-f1f68322-b09b-11ec-b386-256c9c6fe0cd', 'e8ddf3d1-0f35-4f56-9200-ca53450c7325');

Parameters

Name Type Mode
p_tdis_identifier character varying IN
p_upload_batch character varying IN