fix(blog): align soft delete with deleted_at
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m44s
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m44s
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE blog_posts
|
||||
ADD COLUMN IF NOT EXISTS deleted_at TIMESTAMPTZ;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_blog_posts_deleted_at
|
||||
ON blog_posts (deleted_at)
|
||||
WHERE deleted_at IS NOT NULL;
|
||||
Reference in New Issue
Block a user