mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
DB: Some fixes for db update to 0.1.0.
This commit is contained in:
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"""
|
||||
|
||||
Reference in new issue
Block a user