AdistTS: Fix update with table exists tests.

This commit is contained in:
parouby committed 2026-05-28 17:09:02 +02:00
1 parent e79ae8ebf5
commit 229b3da2d1
11 files changed
+50 -78

No files matched your search

+9
View File
@@ -301,6 +301,15 @@ class SQLSubModel(PamhyrID):
"""
raise NotImplementedMethodeError(cls, cls._db_update)
@classmethod
def is_table_exists(cls, execute, table):
return any(
execute(
"SELECT name FROM sqlite_master " +
f"WHERE type='table' AND name='{table}'"
)
)
@classmethod
def _db_update_to_0_2_0_set_node_pid(cls, execute, table, nodes):
els = execute(