Fix initial database creation schema
This commit is contained in:
parent
1c52ce7de9
commit
76270d199e
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue