8 lines
229 B
SQL
8 lines
229 B
SQL
-- Restore archived blog posts that were hidden by soft delete.
|
|
-- Use only when the goal is to bring back previously archived posts.
|
|
|
|
UPDATE blog_posts
|
|
SET deleted_at = NULL,
|
|
updated_at = NOW()
|
|
WHERE deleted_at IS NOT NULL;
|