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

+1 -2
View File
@@ -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(