mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Model: micropatch to ensure all data is included in the table model after the merge
This commit is contained in:
1 parent
69371b5949
commit
d2f03415c8
3 files changed
+3
-4
No files matched your search
@@ -158,7 +158,7 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||
)
|
||||
|
||||
if major == "0" and int(minor) <= 2:
|
||||
if int(release) < 9:
|
||||
if int(release) < 10:
|
||||
execute(
|
||||
"ALTER TABLE geometry_profileXYZ " +
|
||||
"ADD COLUMN enabled BOOLEAN NOT NULL DEFAULT TRUE"
|
||||
|
||||
@@ -341,7 +341,7 @@ class WeatherParameters(SQLSubModel):
|
||||
created = False
|
||||
|
||||
if major == "0" and (int(minor) < 2 or
|
||||
(int(minor) == 2 and int(release) <= 7)):
|
||||
(int(minor) == 2 and int(release) < 10)):
|
||||
if not cls.is_table_exists(execute, "air_temperature"):
|
||||
cls._db_create(execute)
|
||||
created = True
|
||||
|
||||
+1
-2
@@ -195,7 +195,7 @@ class Config(SQL):
|
||||
)
|
||||
|
||||
if major == "0" and minor <= "2":
|
||||
if int(release) < 8:
|
||||
if int(release) < 10:
|
||||
posix = os.name == 'posix'
|
||||
ext = "" if posix else ".exe"
|
||||
path = os.path.join("@install_dir",
|
||||
@@ -215,7 +215,6 @@ class Config(SQL):
|
||||
)
|
||||
""")
|
||||
|
||||
if int(release) < 9:
|
||||
self.execute(
|
||||
"INSERT OR IGNORE INTO data "
|
||||
"VALUES ('display_manning', 'False')"
|
||||
|
||||
Reference in new issue
Block a user