From a9f99b54097b6bf61f07958ff1d02b898bd32d79 Mon Sep 17 00:00:00 2001 From: fbachus Date: Fri, 3 Jul 2026 00:33:21 +0200 Subject: [PATCH] fix(database): fix type of segment id that has no right to be a TEXT I could not think of a reason why this table's id should be a text, so I'm fairly sure it was a mistake. Back to INTEGER --- lib/transport_helper.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transport_helper.dart b/lib/transport_helper.dart index 6430ab1..638c538 100644 --- a/lib/transport_helper.dart +++ b/lib/transport_helper.dart @@ -101,7 +101,7 @@ class Route { Database database = DbHelper.db; String segment = Segment.tableName; database.execute("""CREATE TABLE IF NOT EXISTS routesegments( - id TEXT PRIMARY KEY AUTOINCREMENT, + id INTEGER PRIMARY KEY AUTOINCREMENT, route INTEGER, segment INTEGER, segmentorder INTEGER, -- TODO: implement sorting