cleanup(database): remove unused foreign keys that weren't ref PK's anyway

This commit is contained in:
fbachus
2026-07-31 04:10:02 +02:00
parent fefa3fd365
commit f5757213e8
+1 -3
View File
@@ -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
);
""");
}