-- =====================================================================
-- project_db 마이그레이션 003 — 업무 시작/마감 시간(TIME) 추가
-- =====================================================================
-- 멱등. NULL = 시간 미지정(종일). DROP 없음.
--
-- 실행:
--   docker exec -i postgres-db psql -U postgres -d project_db \
--       < scripts/sql/project_db_003_task_times.sql
-- =====================================================================

\set ON_ERROR_STOP on
\connect project_db

ALTER TABLE tasks ADD COLUMN IF NOT EXISTS start_time TIME;
ALTER TABLE tasks ADD COLUMN IF NOT EXISTS due_time   TIME;

SELECT 'project_db 003 ready' AS status;
