Loading lib/Travelynx/Command/database.pm +18 −8 Original line number Diff line number Diff line Loading @@ -2815,6 +2815,15 @@ sub sync_stations { sub sync_backends { my ($db) = @_; for my $service ( Travel::Status::DE::HAFAS::get_services() ) { my $present = $db->select( 'backends', 'count(*) as count', { hafas => 1, name => $service->{shortname} } )->hash->{count}; if ( not $present ) { $db->insert( 'backends', { Loading @@ -2827,6 +2836,7 @@ sub sync_backends { { on_conflict => undef } ); } } $db->update( 'schema_version', { hafas => $Travel::Status::DE::HAFAS::VERSION } ); Loading Loading
lib/Travelynx/Command/database.pm +18 −8 Original line number Diff line number Diff line Loading @@ -2815,6 +2815,15 @@ sub sync_stations { sub sync_backends { my ($db) = @_; for my $service ( Travel::Status::DE::HAFAS::get_services() ) { my $present = $db->select( 'backends', 'count(*) as count', { hafas => 1, name => $service->{shortname} } )->hash->{count}; if ( not $present ) { $db->insert( 'backends', { Loading @@ -2827,6 +2836,7 @@ sub sync_backends { { on_conflict => undef } ); } } $db->update( 'schema_version', { hafas => $Travel::Status::DE::HAFAS::VERSION } ); Loading