Skip to content

[fix] 교통편 TRAIN 저장 시 CHECK 제약 위반 (transportations_type_check) #435

Closed

Description

@howooyeon

📖 작업 개요

  • 교통편 타입에 TRAIN을 추가([feat] 교통편에 기차(TRAIN) 타입 추가 #431)했지만, transportations.type의 CHECK 제약(transportations_type_check)이 SUBWAY/BUS/PARKING만 허용해 TRAIN 저장 시 DataIntegrityViolation(체크 제약 위반) 이 발생합니다. 제약에 TRAIN을 포함시킵니다.

🧩 작업 내용

  • 마이그레이션 추가: transportations_type_check를 ('SUBWAY','BUS','PARKING','TRAIN') 으로 재정의 (DROP IF EXISTS → ADD)

📱 관련 화면 / 기능

  • 지도
  • 등산 기록
  • 코스 추천
  • 커뮤니티
  • 기타: 어드민 콘솔 - 산 상세 교통편 등록

💬 기타 사항

Activity

  1. added a commit that references this issue on Sep 21, 2026
  2. self-assigned this
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions