diff --git a/habitmove/schema.py b/habitmove/schema.py index fc6c03c..8179209 100644 --- a/habitmove/schema.py +++ b/habitmove/schema.py @@ -64,8 +64,15 @@ def create_constraints(db): ) +def create_pragma(db): + c = db.cursor() + c.execute(""" PRAGMA user_version = 24; """) + c.execute(""" PRAGMA schema_version = 30; """) + + def migrate(name): db = create_database(name) create_tables(db) create_constraints(db) + create_pragma(db) return db