mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
AdisTS: Fix db update.
This commit is contained in:
1 parent
c3faf45f75
commit
7aa0cf4361
10 files changed
+80
-26
No files matched your search
@@ -70,8 +70,11 @@ class Data(SQLSubModel):
|
||||
def _db_update(cls, execute, version, data=None):
|
||||
major, minor, release = version.strip().split(".")
|
||||
created = False
|
||||
|
||||
if major == "0" and minor == "0":
|
||||
cls._db_create(execute)
|
||||
created = True
|
||||
|
||||
if major == "0" and minor == "1":
|
||||
if int(release) < 7:
|
||||
cls._db_create(execute)
|
||||
created = True
|
||||
@@ -250,6 +253,10 @@ class BoundaryConditionAdisTS(SQLSubModel):
|
||||
created = False
|
||||
|
||||
if major == "0" and minor == "0":
|
||||
cls._db_create(execute)
|
||||
created = True
|
||||
|
||||
if major == "0" and minor == "1":
|
||||
if int(release) < 7:
|
||||
cls._db_create(execute)
|
||||
created = True
|
||||
|
||||
Reference in new issue
Block a user