Skip to content

Commit 0fc1ae6

Browse files
committed
db: add migration to convert DELETED articles to HIDDEN status
1 parent ebd8a43 commit 0fc1ae6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- 将 status='DELETED' 的文章迁移为 'HIDDEN'
2+
-- 执行前请确认备份数据
3+
UPDATE articles SET status = 'HIDDEN' WHERE status = 'DELETED';

0 commit comments

Comments
 (0)