From 05b95082933e27b499b132f1a29a6d41716e952b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Mon, 24 Dec 2018 00:20:25 +0100 Subject: [PATCH] fix: schema.sql contains the current schema --- motion.py | 1 + 1 file changed, 1 insertion(+) 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: -- 2.39.2