mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
DB: Some fixes for update 0.1.0.
This commit is contained in:
1 parent
b9ca6bf4a9
commit
d2e5eecf22
4 files changed
+4
-4
No files matched your search
@@ -189,7 +189,7 @@ class Friction(SQLSubModel):
|
||||
|
||||
execute(
|
||||
"INSERT INTO " +
|
||||
"friction(id, ind, begin_rk, end_rk, " +
|
||||
"friction(pamhyr_id, ind, begin_rk, end_rk, " +
|
||||
"reach, begin_strickler, end_strickler) " +
|
||||
"VALUES (" +
|
||||
f"{self.id}, {ind}, " +
|
||||
|
||||
@@ -218,7 +218,7 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||
|
||||
execute(
|
||||
"INSERT OR REPLACE INTO " +
|
||||
"geometry_profileXYZ(id, ind, name, reach, " +
|
||||
"geometry_profileXYZ(pamhyr_id, ind, name, reach, " +
|
||||
"rk, num, code1, code2, sl) " +
|
||||
"VALUES (" +
|
||||
f"{self.pamhyr_id}, {ind}, '{self._db_format(self._name)}', " +
|
||||
|
||||
@@ -329,7 +329,7 @@ class LateralContribution(SQLSubModel):
|
||||
|
||||
sql = (
|
||||
"INSERT INTO " +
|
||||
"lateral_contribution(id, name, type, tab, " +
|
||||
"lateral_contribution(pamhyr_id, name, type, tab, " +
|
||||
"reach, begin_section, end_section) " +
|
||||
"VALUES (" +
|
||||
f"{self.id}, '{self._db_format(self._name)}', " +
|
||||
|
||||
@@ -270,7 +270,7 @@ class Reservoir(SQLSubModel):
|
||||
|
||||
sql = (
|
||||
"INSERT INTO " +
|
||||
"reservoir(id, name, node) " +
|
||||
"reservoir(pamhyr_id, name, node) " +
|
||||
"VALUES (" +
|
||||
f"{self.pamhyr_id}, '{self._db_format(self._name)}', " +
|
||||
f"{node_id}" +
|
||||
|
||||
Reference in new issue
Block a user