From 24adafa25b7b760944bd60dcf7d45b29f8208d7e Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Sun, 20 Apr 2014 16:38:13 +0200 Subject: [PATCH] increase db version after migration --- isso/db/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/isso/db/__init__.py b/isso/db/__init__.py index cac31ee..e1f0485 100644 --- a/isso/db/__init__.py +++ b/isso/db/__init__.py @@ -114,3 +114,6 @@ class SQLite3: for id in flattened.keys(): for n in flattened[id]: con.execute("UPDATE comments SET parent=? WHERE id=?", (id, n)) + + con.execute('PRAGMA user_version = 3') + logger.info("%i rows changed", con.total_changes)