Files

7 lines
139 B
SQL
Raw Permalink Normal View History

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