From 9e674311065b8372f0a93becc8e7357ceffd353b Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 2 Aug 2018 08:15:53 -0700 Subject: [PATCH] Fix tests --- sqlite_utils/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index f6dab67..68ba132 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -145,9 +145,9 @@ class Table: columns.append(name) row["columns"] = columns # These coluns may be missing on older SQLite versions: - for key in ("origin", "partial"): + for key, default in {"origin": "c", "partial": 0}.items(): if key not in row: - row[key] = None + row[key] = default indexes.append(Index(**row)) return indexes