Public Access
cleanup(database): remove unused foreign keys that weren't ref PK's anyway
This commit is contained in:
1 parent
fefa3fd365
commit
f5757213e8
1 file changed
+1
-3
@@ -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
|
||||
);
|
||||
""");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user