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 ); """); }