SL: Fix database update.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-07-25 14:48:54 +02:00
1 parent b87977a2d8
commit 9e0fb53b60
1 file changed
+10
+10
View File
@@ -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