Public Access
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
This commit is contained in:
@@ -101,7 +101,7 @@ class Route {
|
|||||||
Database database = DbHelper.db;
|
Database database = DbHelper.db;
|
||||||
String segment = Segment.tableName;
|
String segment = Segment.tableName;
|
||||||
database.execute("""CREATE TABLE IF NOT EXISTS routesegments(
|
database.execute("""CREATE TABLE IF NOT EXISTS routesegments(
|
||||||
id TEXT PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
route INTEGER,
|
route INTEGER,
|
||||||
segment INTEGER,
|
segment INTEGER,
|
||||||
segmentorder INTEGER, -- TODO: implement sorting
|
segmentorder INTEGER, -- TODO: implement sorting
|
||||||
|
|||||||
Reference in New Issue
Block a user