관리자 글 목록 고정 기능 추가
This commit is contained in:
5
db/migrations/064_posts_admin_pinned.sql
Normal file
5
db/migrations/064_posts_admin_pinned.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE posts
|
||||
ADD COLUMN IF NOT EXISTS admin_pinned BOOLEAN NOT NULL DEFAULT false;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS posts_admin_pinned_sort_idx
|
||||
ON posts (admin_pinned DESC, updated_at DESC);
|
||||
Reference in New Issue
Block a user