mirror of https://gitlab.com/pamhyr/pamhyr2
Results: Fix update table creation.
parent
7ca6e69526
commit
16ee5a90e4
|
|
@ -105,16 +105,6 @@ class Profile(SQLSubModel):
|
|||
@classmethod
|
||||
def _db_update(cls, execute, version, data=None):
|
||||
major, minor, release = version.strip().split(".")
|
||||
create = False
|
||||
|
||||
if major == "0" and int(minor) < 2:
|
||||
cls._db_create(execute)
|
||||
create = True
|
||||
|
||||
if major == "0" and int(minor) == 2:
|
||||
if int(release) < 1 and not create:
|
||||
cls._db_create(execute)
|
||||
create = True
|
||||
|
||||
return cls._update_submodel(execute, version, data)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue