mirror of https://gitlab.com/pamhyr/pamhyr2
AdisTS: D90: Fix reach pid update.
parent
7b88d955e5
commit
e08d212986
|
|
@ -83,6 +83,7 @@ class D90AdisTSSpec(SQLSubModel):
|
|||
def _db_update_to_0_2_0(cls, execute, data):
|
||||
table = "d90_spec"
|
||||
table_new = "d90_adists_spec"
|
||||
reachs = data['id2pid']['river_reach']
|
||||
|
||||
cls.update_db_add_pamhyr_id(execute, table, data)
|
||||
Scenario.update_db_add_scenario(execute, table)
|
||||
|
|
@ -102,6 +103,7 @@ class D90AdisTSSpec(SQLSubModel):
|
|||
execute(f"ALTER TABLE {table_new}_tmp RENAME TO {table_new}")
|
||||
|
||||
cls._db_update_to_0_2_0_set_d90_pid(execute, data)
|
||||
cls._db_update_to_0_2_0_set_reach_pid(execute, table_new, reachs)
|
||||
|
||||
@classmethod
|
||||
def _db_update_to_0_2_0_set_d90_pid(cls, execute, data):
|
||||
|
|
|
|||
Loading…
Reference in New Issue