mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
AdisTS: D90: Fix reach pid update.
This commit is contained in:
1 parent
7b88d955e5
commit
e08d212986
1 file changed
+2
@@ -83,6 +83,7 @@ class D90AdisTSSpec(SQLSubModel):
|
|||||||
def _db_update_to_0_2_0(cls, execute, data):
|
def _db_update_to_0_2_0(cls, execute, data):
|
||||||
table = "d90_spec"
|
table = "d90_spec"
|
||||||
table_new = "d90_adists_spec"
|
table_new = "d90_adists_spec"
|
||||||
|
reachs = data['id2pid']['river_reach']
|
||||||
|
|
||||||
cls.update_db_add_pamhyr_id(execute, table, data)
|
cls.update_db_add_pamhyr_id(execute, table, data)
|
||||||
Scenario.update_db_add_scenario(execute, table)
|
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}")
|
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_d90_pid(execute, data)
|
||||||
|
cls._db_update_to_0_2_0_set_reach_pid(execute, table_new, reachs)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _db_update_to_0_2_0_set_d90_pid(cls, execute, data):
|
def _db_update_to_0_2_0_set_d90_pid(cls, execute, data):
|
||||||
|
|||||||
Reference in new issue
Block a user