summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-01-08 20:26:44 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2025-01-08 20:26:44 +0100
commitb8f48ade1d42957535207a971879d58642574d29 (patch)
tree7a3233fab5268f28ef243494ff341f1e55a0beaa
parentef50cbf378ad9c0375332c727b51b2660a62053d (diff)
Do not use DB HAFAS by default. Use DB IRIS instead.2.9.12
-rw-r--r--lib/Travelynx/Command/database.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Travelynx/Command/database.pm b/lib/Travelynx/Command/database.pm
index a7d13a8..6ba80a3 100644
--- a/lib/Travelynx/Command/database.pm
+++ b/lib/Travelynx/Command/database.pm
@@ -2689,6 +2689,18 @@ qq{select distinct checkout_station_id from in_transit where backend_id = 0;}
}
);
},
+
+ # v58 -> v59
+ # DB HAFAS is dead. Default to DB IRIS for now.
+ sub {
+ my ($db) = @_;
+ $db->query(
+ qq{
+ alter table users alter column backend_id set default 0;
+ update schema_version set version = 59;
+ }
+ );
+ },
);
sub sync_stations {