Pamhyr: Some fixe for db update to 0.1.1.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-08-21 15:10:39 +02:00
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(