Fix initial database creation schema

This commit is contained in:
Paul Bienkowski 2022-03-21 22:21:45 +01:00
parent 1c52ce7de9
commit 76270d199e

View file

@ -147,7 +147,7 @@ class Road(Base):
class RoadUsage(Base):
__tablename__ = "road_usage"
__table_args__ = (Index("road_segment", "way_id", "direction_reversed"),)
__table_args__ = (Index("road_usage_segment", "way_id", "direction_reversed"),)
id = Column(Integer, autoincrement=True, primary_key=True, index=True)
track_id = Column(Integer, ForeignKey("track.id", ondelete="CASCADE"))