From e0c4cbf862a8f5a7bca0b1aceab3760af94093e9 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 9 Jun 2025 18:28:35 +0200 Subject: database: it's dbris, not ris --- lib/Travelynx/Command/database.pm | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'lib/Travelynx/Command/database.pm') diff --git a/lib/Travelynx/Command/database.pm b/lib/Travelynx/Command/database.pm index b328040..460e05c 100644 --- a/lib/Travelynx/Command/database.pm +++ b/lib/Travelynx/Command/database.pm @@ -3234,18 +3234,19 @@ sub sync_backends_efa { 'backends', 'count(*) as count', { - efa => 1, - name => $service->{shortname} + efa => 1, + name => $service->{shortname} } )->hash->{count}; if ( not $present ) { $db->insert( 'backends', { - iris => 0, - hafas => 0, + dbris => 0, efa => 1, - ris => 0, + hafas => 0, + iris => 0, + motis => 0, name => $service->{shortname}, }, { on_conflict => undef } @@ -3272,10 +3273,11 @@ sub sync_backends_hafas { $db->insert( 'backends', { - iris => 0, - hafas => 1, - efa => 0, dbris => 0, + efa => 0, + hafas => 1, + iris => 0, + motis => 0, name => $service->{shortname}, }, { on_conflict => undef } @@ -3302,10 +3304,10 @@ sub sync_backends_motis { $db->insert( 'backends', { - iris => 0, - hafas => 0, - efa => 0, dbris => 0, + efa => 0, + hafas => 0, + iris => 0, motis => 1, name => $service->{shortname}, }, -- cgit v1.2.3