Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion distros/dataverse.no/init.d/cronjob/checkETagByFiles.sql
Original file line number Diff line number Diff line change
@@ -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;
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;