DB: Some fixes for db update to 0.1.0.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-08-07 10:46:44 +02:00
1 parent 2290e2eb6d
commit 74c61262b7
7 files changed
+33 -15

No files matched your search

@@ -72,6 +72,9 @@ class HydraulicStructure(SQLSubModel):
)
""")
if ext == "_tmp":
return True
return cls._create_submodel(execute)
@classmethod
@@ -83,7 +86,7 @@ class HydraulicStructure(SQLSubModel):
if rl < 6:
cls._db_create(execute)
if rl < 11:
if 6 < rl < 11:
for v in ["input", "output"]:
execute(
f"""