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
@@ -71,6 +71,7 @@ class BHSValue(SQLSubModel):
|
||||
bhs = data['id2pid']['hydraulic_structures_basic']
|
||||
|
||||
cls.update_db_add_pamhyr_id(execute, table, data)
|
||||
cls._db_update_to_0_1_0_set_bhs_pid(execute, table, bhs)
|
||||
Scenario.update_db_add_scenario(execute, table)
|
||||
|
||||
cls._db_create(execute, ext="_tmp")
|
||||
@@ -85,8 +86,6 @@ class BHSValue(SQLSubModel):
|
||||
execute(f"DROP TABLE {table}")
|
||||
execute(f"ALTER TABLE {table}_tmp RENAME TO {table}")
|
||||
|
||||
cls._db_update_to_0_1_0_set_bhs_pid(execute, table, bhs)
|
||||
|
||||
@classmethod
|
||||
def _db_update_to_0_1_0_set_bhs_pid(cls, execute, table, bhs):
|
||||
els = execute(
|
||||
|
||||
Reference in new issue
Block a user