From 2cddcbef7dfce69d629b9817636d75bf23174724 Mon Sep 17 00:00:00 2001 From: stopflock Date: Wed, 15 Jul 2026 16:29:34 -0500 Subject: [PATCH] forgot a file - maybe why suspected locations not updating --- lib/services/suspected_location_database.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/services/suspected_location_database.dart b/lib/services/suspected_location_database.dart index c6c61e3..7405895 100644 --- a/lib/services/suspected_location_database.dart +++ b/lib/services/suspected_location_database.dart @@ -58,13 +58,18 @@ class SuspectedLocationDatabase { } /// Create database tables - Future _createTables(Database db, int version) async { + /// + /// Takes a [DatabaseExecutor] (rather than [Database]) so this can be + /// called either directly on the database (e.g. from [onCreate]) or inside + /// a transaction (see [insertBatch]). + Future _createTables(DatabaseExecutor db, int version) async { debugPrint('[SuspectedLocationDatabase] Creating tables...'); // Main suspected locations table await db.execute(''' CREATE TABLE $_tableName ( $_columnTicketNo TEXT PRIMARY KEY, + $_columnCentroidLat REAL NOT NULL, $_columnCentroidLng REAL NOT NULL, $_columnBounds TEXT,