UPDATE articles
SET current_version_id = NULL,
    updated_at = NOW()
WHERE current_version_id IS NOT NULL;

DELETE FROM article_versions;
