Skip to content

Commit

Permalink
Hot-fix for enum type names in recurring event deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisJordan committed Jan 22, 2025
1 parent 5e31798 commit 656b41f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/entities/office_hours/office_hours_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ class OfficeHoursEntity(EntityBase):
id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True)
# Type of event
type: Mapped[OfficeHoursEventType] = mapped_column(
SQLAlchemyEnum(OfficeHoursEventType), nullable=False
SQLAlchemyEnum(OfficeHoursEventType, name="office_hours__event__type"),
nullable=False,
)

# Mode of event
mode: Mapped[OfficeHoursEventModeType] = mapped_column(
SQLAlchemyEnum(OfficeHoursEventModeType), nullable=False
SQLAlchemyEnum(OfficeHoursEventModeType, name="office_hours__event__mode"),
nullable=False,
)

# Description of event
Expand Down

0 comments on commit 656b41f

Please sign in to comment.