mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
DB: Fix DB update and set DB version to '0.1.7'.
This commit is contained in:
1 parent
36fe9a51c4
commit
3f98cf8625
12 files changed
+30
-12
No files matched your search
@@ -99,6 +99,11 @@ class Pollutants(SQLSubModel):
|
||||
|
||||
@classmethod
|
||||
def _db_update(cls, execute, version, data=None):
|
||||
major, minor, release = version.strip().split(".")
|
||||
if major == "0" and int(minor) <= 1:
|
||||
if int(release) < 7:
|
||||
cls._db_create(execute)
|
||||
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user