feat: implement article version content storage and reconstruction logic; enhance article repository with version management

This commit is contained in:
2026-04-07 22:21:16 +08:00
parent d0f0271346
commit 41f8e0621e
9 changed files with 324 additions and 48 deletions
@@ -0,0 +1,6 @@
UPDATE articles
SET current_version_id = NULL,
updated_at = NOW()
WHERE current_version_id IS NOT NULL;
DELETE FROM article_versions;