From 3e2b83420dd649f203c8b71f61d2576ba1fddb31 Mon Sep 17 00:00:00 2001 From: Steph Merritt Date: Mon, 25 Nov 2024 11:05:15 +0000 Subject: [PATCH] timestamp should be stored as REAL --- src/adler/objectdata/AdlerData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adler/objectdata/AdlerData.py b/src/adler/objectdata/AdlerData.py index 23b953a..f1fb78e 100644 --- a/src/adler/objectdata/AdlerData.py +++ b/src/adler/objectdata/AdlerData.py @@ -319,7 +319,7 @@ def _get_database_connection(self, filepath, create_new=False): if not database_exists and create_new: # we need to make the table and a couple of starter columns con = sqlite3.connect(filepath) cur = con.cursor() - cur.execute("CREATE TABLE AdlerData(ssObjectId INTEGER PRIMARY KEY, timestamp TEXT)") + cur.execute("CREATE TABLE AdlerData(ssObjectId INTEGER PRIMARY KEY, timestamp REAL)") elif not database_exists and not create_new: logger.error("ValueError: Database cannot be found at given filepath.") raise ValueError("Database cannot be found at given filepath.")