AdistTS: Fix update with table exists tests.

This commit is contained in:
parouby committed 2026-05-28 17:09:02 +02:00
1 parent e79ae8ebf5
commit 229b3da2d1
11 files changed
+50 -78

No files matched your search

@@ -248,15 +248,13 @@ class BoundaryConditionAdisTS(SQLSubModel):
major, minor, release = version.strip().split(".")
created = False
if major == "0" and minor == "0":
if int(release) < 11:
if major == "0" and int(minor) < 2:
if cls.is_table_exists(execute, "boundary_condition_adists"):
cls._db_update_to_0_2_0(execute, data)
else:
cls._db_create(execute)
created = True
if major == "0" and int(minor) < 2:
if not created:
cls._db_update_to_0_2_0(execute, data)
if not created:
return cls._update_submodel(execute, version, data)