diff --git a/distros/dataverse.no/init.d/cronjob/checkETagByFiles.sql b/distros/dataverse.no/init.d/cronjob/checkETagByFiles.sql index 749db56..e3a1ce3 100644 --- a/distros/dataverse.no/init.d/cronjob/checkETagByFiles.sql +++ b/distros/dataverse.no/init.d/cronjob/checkETagByFiles.sql @@ -1,3 +1,3 @@ --select storageidentifier, CONCAT( get_authority(dvobject.id), '/', get_identifier(dvobject.id), '/', REPLACE(storageidentifier, 'S3://2002-green-dataversenotest1:','')), datafile.checksumvalue from dvobject INNER join datafile on dvobject.id=datafile.id where storageidentifier like '%S3:%' and dtype='DataFile' and modificationtime>=(current_date - INTERVAL '2 day'); -select storageidentifier, CONCAT( get_authority(dvobject.id), '/', get_identifier(dvobject.id), '/', storageidentifier ), datafile.checksumvalue from dvobject INNER join datafile on dvobject.id=datafile.id where storageidentifier like '%S3:%' and dtype='DataFile' and publicationdate notnull and protocol notnull and identifier notnull; \ No newline at end of file +select storageidentifier, CONCAT( get_authority(dvobject.id), '/', get_identifier(dvobject.id), '/', storageidentifier ), datafile.checksumvalue from dvobject INNER join datafile on dvobject.id=datafile.id where storageidentifier like '%S3:%' and dtype='DataFile' and publicationdate IS NOT NULL and protocol IS NOT NULL and identifier IS NOT NULL; \ No newline at end of file