]> WPIA git - motion.git/blobdiff - motion.py
fix: schema.sql contains the current schema
[motion.git] / motion.py
index 08dd458ee45f10b0dcb314cc6fd83ab13d6acafa..ee1c3a8a86abcff5ca30d5916584724c6799c8d6 100644 (file)
--- 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: