diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2017-04-09 20:43:18 +0200 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2017-04-09 20:43:18 +0200 |
commit | 2f256fe553d7d556a0d8948a940be0a0214ea5ea (patch) | |
tree | 488882e81efbb75298a482f6ea6f0ebdd2bb3a11 | |
parent | a8bd5769fda6e10d5d95b4312ee5aa8fb376a94a (diff) | |
download | dmarcpipe-2f256fe553d7d556a0d8948a940be0a0214ea5ea.tar.gz dmarcpipe-2f256fe553d7d556a0d8948a940be0a0214ea5ea.tar.xz dmarcpipe-2f256fe553d7d556a0d8948a940be0a0214ea5ea.zip |
sql: prevent accidents with newer databases
-rw-r--r-- | sql.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -70,6 +70,7 @@ def _init_db(conn): version = c.execute('PRAGMA user_version').fetchone()[0] if version == 1: return + assert(version == 0) c.executescript(_schema) c.execute('PRAGMA user_version = 1') |