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
@@ -87,6 +87,7 @@ class BasicHS(SQLSubModel):
|
||||
hs = data['id2pid']['hydraulic_structures']
|
||||
|
||||
cls.update_db_add_pamhyr_id(execute, table, data)
|
||||
cls._db_update_to_0_1_0_set_hs_pid(execute, table, hs)
|
||||
Scenario.update_db_add_scenario(execute, table)
|
||||
|
||||
cls._db_create(execute, ext="_tmp")
|
||||
@@ -101,8 +102,6 @@ class BasicHS(SQLSubModel):
|
||||
execute(f"DROP TABLE {table}")
|
||||
execute(f"ALTER TABLE {table}_tmp RENAME TO {table}")
|
||||
|
||||
cls._db_update_to_0_1_0_set_hs_pid(execute, table, hs)
|
||||
|
||||
@classmethod
|
||||
def _db_update_to_0_1_0_set_hs_pid(cls, execute, table, hs):
|
||||
els = execute(
|
||||
|
||||
Reference in new issue
Block a user