mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Result database: fix a problem that happens when we want to open a study with results saved, but results_table_data doesnt exist in database
This commit is contained in:
1 parent
da28bae6c5
commit
2028d84554
1 file changed
+2
-7
@@ -202,13 +202,8 @@ class TableData(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:
|
||||
if int(release) < 7 and not create:
|
||||
cls._db_create(execute)
|
||||
create = True
|
||||
if not cls.is_table_exists(execute, "results_table_data"):
|
||||
cls._db_create(execute)
|
||||
|
||||
return cls._update_submodel(execute, version, data)
|
||||
|
||||
|
||||
Reference in new issue
Block a user