diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-07-11 22:09:26 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-07-11 22:09:26 +0200 |
commit | 5eab0c14f4feb5b369d9e1605f0d1f8ba413bb6e (patch) | |
tree | 3ffda5aa6573903c8dccd429d873b0b86e8b0ff4 /lib/Travelynx/Command | |
parent | 4deb0bde0b36a175922bb0b274087f1b19762c4c (diff) |
optionally link to external departure boards where sensible (WiP)
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r-- | lib/Travelynx/Command/database.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Travelynx/Command/database.pm b/lib/Travelynx/Command/database.pm index e84cf54..32522be 100644 --- a/lib/Travelynx/Command/database.pm +++ b/lib/Travelynx/Command/database.pm @@ -1069,6 +1069,20 @@ my @migrations = ( } ); }, + + # v24 -> v25 + # travelynx 1.23 adds optional links to external services, e.g. + # DBF or marudor.de departure boards + sub { + my ($db) = @_; + $db->query( + qq{ + alter table users add column external_services smallint; + comment on column users.external_services is 'Which external service to use for stationboard or routing links'; + update schema_version set version = 25; + } + ); + }, ); sub setup_db { |