summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/DatabaseBackend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/DatabaseBackend.py b/module/DatabaseBackend.py
index c93479565..f8e90b97a 100644
--- a/module/DatabaseBackend.py
+++ b/module/DatabaseBackend.py
@@ -163,14 +163,14 @@ class DatabaseBackend(Thread):
try:
getattr(self, "_convertV%i" % v)()
except:
- self.manager.core.log.error(_("Filedatabase could NOT be converted."))
+ self.core.log.error(_("Filedatabase could NOT be converted."))
#--convert scripts start
def _convertV2(self):
self.c.execute('CREATE TABLE IF NOT EXISTS "storage" ("id" INTEGER PRIMARY KEY AUTOINCREMENT, "identifier" TEXT NOT NULL, "key" TEXT NOT NULL, "value" TEXT DEFAULT "")')
self.manager.core.log.info(_("Database was converted from v2 to v3."))
- self._convertV3(self)
+ self._convertV3()
def _convertV3(self):
self.c.execute('CREATE TABLE IF NOT EXISTS "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT, "name" TEXT NOT NULL, "email" TEXT DEFAULT "" NOT NULL, "password" TEXT NOT NULL, "role" INTEGER DEFAULT 0 NOT NULL, "permission" INTEGER DEFAULT 0 NOT NULL, "template" TEXT DEFAULT "default" NOT NULL)')