mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
DB: Some fixes for db update 0.1.0.
This commit is contained in:
1 parent
c7b5b40eda
commit
9a0476aa46
1 file changed
+4
-5
@@ -128,17 +128,16 @@ class REPLine(SQLSubModel):
|
||||
if major == minor == "0":
|
||||
if int(release) < 9:
|
||||
cls._db_create(execute)
|
||||
|
||||
if 9 < int(release) < 14:
|
||||
cls._db_update_to_0_0_14(execute)
|
||||
else:
|
||||
cls._db_update_to_0_0_14(execute, data)
|
||||
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
def _db_update_to_0_0_14(cls, execute):
|
||||
def _db_update_to_0_0_14(cls, execute, data):
|
||||
table = "rep_lines"
|
||||
|
||||
cls.update_db_add_pamhyr_id(execute, table)
|
||||
cls.update_db_add_pamhyr_id(execute, table, data)
|
||||
Scenario.update_db_add_scenario(execute, table)
|
||||
|
||||
cls._db_create(execute, ext="_tmp")
|
||||
|
||||
Reference in new issue
Block a user