From 4b1345b7a9caec28478fc530bfca0574c7c502a6 Mon Sep 17 00:00:00 2001 From: Benedikt Meier Date: Thu, 4 Apr 2024 17:31:29 +0200 Subject: [PATCH] change sql request --- distros/dataverse.no/init.d/cronjob/checkETagByFiles.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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