mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Adists: d90: Fix update pipeline.
This commit is contained in:
1 parent
1f79e6510d
commit
e344678ac5
2 files changed
+6
-4
No files matched your search
@@ -63,6 +63,9 @@ class D90AdisTS(SQLSubModel):
|
|||||||
)
|
)
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
if ext != "":
|
||||||
|
return True
|
||||||
|
|
||||||
return cls._create_submodel(execute)
|
return cls._create_submodel(execute)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -79,7 +82,7 @@ class D90AdisTS(SQLSubModel):
|
|||||||
if not created:
|
if not created:
|
||||||
cls._db_update_to_0_2_0(execute, data)
|
cls._db_update_to_0_2_0(execute, data)
|
||||||
|
|
||||||
return True
|
return cls._update_submodel(execute, version, data)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_update_to_0_2_0(cls, execute, data):
|
def _db_update_to_0_2_0(cls, execute, data):
|
||||||
|
|||||||
@@ -28,8 +28,7 @@ logger = logging.getLogger()
|
|||||||
|
|
||||||
|
|
||||||
class D90AdisTSSpec(SQLSubModel):
|
class D90AdisTSSpec(SQLSubModel):
|
||||||
_sub_classes = [
|
_sub_classes = []
|
||||||
]
|
|
||||||
_id_cnt = 0
|
_id_cnt = 0
|
||||||
|
|
||||||
def __init__(self, id: int = -1, name: str = "",
|
def __init__(self, id: int = -1, name: str = "",
|
||||||
@@ -193,7 +192,7 @@ class D90AdisTSSpec(SQLSubModel):
|
|||||||
|
|
||||||
execute(
|
execute(
|
||||||
"INSERT INTO " +
|
"INSERT INTO " +
|
||||||
"d90_spec(pamhyr_id, deleted, " +
|
"d90_adists_spec(pamhyr_id, deleted, " +
|
||||||
"d90_default, name, reach, " +
|
"d90_default, name, reach, " +
|
||||||
"start_rk, end_rk, d90, enabled, scenario) " +
|
"start_rk, end_rk, d90, enabled, scenario) " +
|
||||||
"VALUES (" +
|
"VALUES (" +
|
||||||
|
|||||||
Reference in new issue
Block a user