- 순찰/점검 기능 개선 (zone-detail 페이지 추가) - 출근/근태 시스템 개선 (연차 조회, 근무현황) - 작업분석 대분류 그룹화 및 마이그레이션 스크립트 - 모바일 네비게이션 UI 추가 - NAS 배포 도구 및 문서 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
51 lines
1.3 KiB
JavaScript
51 lines
1.3 KiB
JavaScript
/**
|
|
* 마이그레이션: 문제 신고 관련 페이지 등록
|
|
*/
|
|
|
|
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('✅ 문제 신고 페이지 삭제 완료');
|
|
};
|