관리자 글쓰기·목록 UX 개선 및 POST 설정 추가(v1.1.14~v1.1.18)
Ghost형 툴바·초안 자동 저장·발행 모달, private 제거, 미디어 모달 통합, 발행일·수정일 표시 설정과 DB 마이그레이션 025·026을 반영한다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
10
db/migrations/025_posts_status_no_private.sql
Normal file
10
db/migrations/025_posts_status_no_private.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- 비공개(private) 상태를 초안으로 통합하고 CHECK 제약을 published/draft만 허용하도록 변경한다.
|
||||
|
||||
UPDATE posts
|
||||
SET status = 'draft'
|
||||
WHERE status = 'private';
|
||||
|
||||
ALTER TABLE posts DROP CONSTRAINT IF EXISTS posts_status_check;
|
||||
|
||||
ALTER TABLE posts
|
||||
ADD CONSTRAINT posts_status_check CHECK (status IN ('published', 'draft'));
|
||||
2
db/migrations/026_site_settings_show_post_updated_at.sql
Normal file
2
db/migrations/026_site_settings_show_post_updated_at.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE site_settings
|
||||
ADD COLUMN IF NOT EXISTS show_post_updated_at BOOLEAN NOT NULL DEFAULT false;
|
||||
Reference in New Issue
Block a user