From f5757213e8b8ce886150982763288cade4356019 Mon Sep 17 00:00:00 2001 From: fbachus Date: Fri, 31 Jul 2026 03:51:14 +0200 Subject: [PATCH] cleanup(database): remove unused foreign keys that weren't ref PK's anyway --- lib/transport_helper.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/transport_helper.dart b/lib/transport_helper.dart index 4b90524..13d162e 100644 --- a/lib/transport_helper.dart +++ b/lib/transport_helper.dart @@ -187,9 +187,7 @@ class Journey { database.execute("""CREATE TABLE IF NOT EXISTS '$tableName'( id INTEGER PRIMARY KEY AUTOINCREMENT, startstation TEXT, - endstation TEXT, - FOREIGN KEY (startstation) REFERENCES station(name) - FOREIGN KEY (endstation) REFERENCES station(name) + endstation TEXT ); """); }