게시물 추천과 관리자 목록 필터 정리
This commit is contained in:
5
db/migrations/023_add_post_featured.sql
Normal file
5
db/migrations/023_add_post_featured.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE posts
|
||||
ADD COLUMN IF NOT EXISTS is_featured BOOLEAN NOT NULL DEFAULT false;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS posts_is_featured_status_published_at_idx
|
||||
ON posts (is_featured, status, published_at DESC);
|
||||
Reference in New Issue
Block a user