From: Felix Dörre Date: Sun, 23 Dec 2018 23:20:25 +0000 (+0100) Subject: fix: schema.sql contains the current schema X-Git-Url: http://www.controwiki.de/?a=commitdiff_plain;h=05b95082933e27b499b132f1a29a6d41716e952b;p=motion.git fix: schema.sql contains the current schema --- diff --git a/motion.py b/motion.py index 08dd458..ee1c3a8 100644 --- a/motion.py +++ b/motion.py @@ -88,6 +88,7 @@ def init_db(): if ver < 1: with app.open_resource('sql/schema.sql', mode='r') as f: db.execute(f.read()) + return if ver < 2: with app.open_resource('sql/from_1.sql', mode='r') as f: