summaryrefslogtreecommitdiffstats
path: root/module/database/DatabaseBackend.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/database/DatabaseBackend.py')
-rw-r--r--module/database/DatabaseBackend.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/database/DatabaseBackend.py b/module/database/DatabaseBackend.py
index 3e6b059c0..58e1e74d8 100644
--- a/module/database/DatabaseBackend.py
+++ b/module/database/DatabaseBackend.py
@@ -139,7 +139,7 @@ class DatabaseBackend(Thread):
set_DB(self)
def setup(self):
-
+ """ *MUST* be called before db can be used !"""
self.start()
self.running.wait()
@@ -352,9 +352,9 @@ class DatabaseBackend(Thread):
self.c.execute(
'CREATE TABLE IF NOT EXISTS "settings" ('
'"plugin" TEXT NOT NULL, '
- '"user" INTEGER NOT NULL, '
+ '"user" INTEGER DEFAULT -1 NOT NULL, '
'"config" TEXT NOT NULL, '
- 'FOREIGN KEY(owner) REFERENCES users(uid), '
+ 'FOREIGN KEY(user) REFERENCES users(uid), '
'PRIMARY KEY (plugin, user) ON CONFLICT REPLACE'
')'
)