Daniel Brötzmann pushed to branch storage at gajim / gajim


Commits:
0f1871b3 by wurstsalat at 2023-11-27T23:41:19+01:00
cfix: DBMigration: Fix tests

- - - - -


1 changed file:

- gajim/common/storage/archive/storage.py


Changes:

=====================================
gajim/common/storage/archive/storage.py
=====================================
@@ -66,7 +66,7 @@
 from gajim.common.storage.base import timeit
 from gajim.common.storage.base import VALUE_MISSING
 
-from gajim.gtk.util import open_window
+from gajim.gtk.db_migration import DBMigration
 
 CURRENT_USER_VERSION = 7
 
@@ -193,11 +193,8 @@ def _migrate(self) -> None:
             self._execute_multiple(statements)
 
         if user_version < 8:
-            open_window(
-                'DBMigration',
-                migration_routine=MigrationV8,
-                db_connection=self._con,
-                db_path=self._path)
+            if self._path is not None:
+                DBMigration(MigrationV8, self._con, self._path)
 
     @staticmethod
     def _like(search_str: str) -> str:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/0f1871b3c9f9c390a7343b908d62fa9e7abae29e

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/0f1871b3c9f9c390a7343b908d62fa9e7abae29e
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to