diff options
author | Daniel Friesel <derf@finalrewind.org> | 2023-02-04 21:17:45 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2023-02-04 21:17:45 +0100 |
commit | 6b4a82da32e28f48695e284f81931888bc2950e3 (patch) | |
tree | 6d421e7080fe78fbef726ce60163e630466fffe4 /lib/Travelynx/Command/database.pm | |
parent | f115283cb82c49841dec2c154089600cc19a0e07 (diff) |
inconsistent journeys: link to journeys
Diffstat (limited to 'lib/Travelynx/Command/database.pm')
-rw-r--r-- | lib/Travelynx/Command/database.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Travelynx/Command/database.pm b/lib/Travelynx/Command/database.pm index 4b83208..a42f2f5 100644 --- a/lib/Travelynx/Command/database.pm +++ b/lib/Travelynx/Command/database.pm @@ -1287,6 +1287,19 @@ my @migrations = ( } ); }, + + # v30 -> v31 + # travelynx v1.29.17 introduces links to conflicting journeys. + # These require changes to statistics data. + sub { + my ($db) = @_; + $db->query( + qq{ + truncate journey_stats; + update schema_version set version = 31; + } + ); + }, ); sub sync_stations { |