summaryrefslogtreecommitdiffstats
path: root/sql.py
diff options
context:
space:
mode:
Diffstat (limited to 'sql.py')
-rw-r--r--sql.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql.py b/sql.py
index 4207d4f..d3b63b0 100644
--- a/sql.py
+++ b/sql.py
@@ -70,6 +70,7 @@ def _init_db(conn):
version = c.execute('PRAGMA user_version').fetchone()[0]
if version == 1:
return
+ assert(version == 0)
c.executescript(_schema)
c.execute('PRAGMA user_version = 1')