tethys.backend/app/Controllers
Arno Kaimbacher 9c0221ce27 fix: repair related_document_id for version references
Add `fix:version-related-ids` ace command to backfill and correct
related_document_id on IsNewVersionOf / IsPreviousVersionOf references,
resolving the target dataset via its DOI. Handles both NULL and
self-referential (wrong) values that the existing detect command could
not repair.

Make the dataset version-chain API DOI-based: resolve previous/newer
versions through the DOI in the reference value instead of the
unreliable related_document_id, so the chain is correct regardless of
the stored FK.
2026-06-09 14:23:06 +02:00
..
Http fix: repair related_document_id for version references 2026-06-09 14:23:06 +02:00