mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Pamhyr: Some fixe for db update to 0.1.1.
This commit is contained in:
1 parent
770ecdfa99
commit
7274ff5e2d
7 files changed
+47
-29
No files matched your search
@@ -113,11 +113,12 @@ class HydraulicStructure(SQLSubModel):
|
||||
table = "hydraulic_structures"
|
||||
reachs = data['id2pid']['river_reach']
|
||||
|
||||
cls.update_db_add_pamhyr_id(execute, table, data)
|
||||
cls._db_update_to_0_1_0_set_reach_pid(execute, table, reachs)
|
||||
cls._db_update_to_0_1_1(
|
||||
execute, data,
|
||||
origin_version="0.0.*"
|
||||
)
|
||||
cls.update_db_add_pamhyr_id(execute, table, data)
|
||||
Scenario.update_db_add_scenario(execute, table)
|
||||
|
||||
cls._db_create(execute, ext="_tmp")
|
||||
@@ -135,8 +136,6 @@ class HydraulicStructure(SQLSubModel):
|
||||
execute(f"DROP TABLE {table}")
|
||||
execute(f"ALTER TABLE {table}_tmp RENAME TO {table}")
|
||||
|
||||
cls._db_update_to_0_1_0_set_reach_pid(execute, table, reachs)
|
||||
|
||||
@classmethod
|
||||
def _db_update_to_0_1_0_set_reach_pid(cls, execute, table, reachs):
|
||||
els = execute(
|
||||
|
||||
Reference in new issue
Block a user