Only create default json table if it's not defined in dbschema
This commit is contained in:
parent
8a17fe927f
commit
4195a72621
1 changed files with 28 additions and 27 deletions
|
@ -180,7 +180,8 @@ class Db(object):
|
|||
if changed:
|
||||
changed_tables.append("keyvalue")
|
||||
|
||||
# Check json table
|
||||
# Create json table if no custom one defined
|
||||
if "json" not in self.schema.get("tables", {}):
|
||||
if self.schema["version"] == 1:
|
||||
changed = cur.needTable("json", [
|
||||
["json_id", "INTEGER PRIMARY KEY AUTOINCREMENT"],
|
||||
|
|
Loading…
Reference in a new issue