mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
SL: Fix database update.
This commit is contained in:
1 parent
b87977a2d8
commit
9e0fb53b60
1 file changed
+10
@@ -70,6 +70,11 @@ class Layer(SQLSubModel):
|
||||
|
||||
@classmethod
|
||||
def _sql_update(cls, execute, version):
|
||||
major, minor, release = version.strip().split(".")
|
||||
if major == minor == "0":
|
||||
if int(release) < 2:
|
||||
cls._sql_create(execute)
|
||||
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
@@ -187,6 +192,11 @@ class SedimentLayer(SQLSubModel):
|
||||
|
||||
@classmethod
|
||||
def _sql_update(cls, execute, version):
|
||||
major, minor, release = version.strip().split(".")
|
||||
if major == minor == "0":
|
||||
if int(release) < 2:
|
||||
cls._sql_create(execute)
|
||||
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user