/** * 마이그레이션: 문제 신고 관련 페이지 등록 */ exports.up = async function(knex) { // 문제 신고 등록 페이지 await knex('pages').insert({ page_key: 'issue-report', page_name: '문제 신고', page_path: '/pages/work/issue-report.html', category: 'work', description: '작업 중 문제(부적합/안전) 신고 등록', is_admin_only: 0, display_order: 16 }); // 신고 목록 페이지 await knex('pages').insert({ page_key: 'issue-list', page_name: '신고 목록', page_path: '/pages/work/issue-list.html', category: 'work', description: '문제 신고 목록 조회 및 관리', is_admin_only: 0, display_order: 17 }); // 신고 상세 페이지 await knex('pages').insert({ page_key: 'issue-detail', page_name: '신고 상세', page_path: '/pages/work/issue-detail.html', category: 'work', description: '문제 신고 상세 조회', is_admin_only: 0, display_order: 18 }); console.log('✅ 문제 신고 페이지 등록 완료'); }; exports.down = async function(knex) { await knex('pages').whereIn('page_key', [ 'issue-report', 'issue-list', 'issue-detail' ]).delete(); console.log('✅ 문제 신고 페이지 삭제 완료'); };