diff options
author | 2012-09-10 11:49:35 +0200 | |
---|---|---|
committer | 2012-09-10 11:49:35 +0200 | |
commit | 54bc92b4c5e0b3543a313f497cbc2276403c5980 (patch) | |
tree | 60e220c41998d9a41dd9a0b94e9c6a5ee02ae86d /module/database/DatabaseBackend.py | |
parent | new config api (diff) | |
download | pyload-54bc92b4c5e0b3543a313f497cbc2276403c5980.tar.xz |
changed config + progress api
Diffstat (limited to 'module/database/DatabaseBackend.py')
-rw-r--r-- | module/database/DatabaseBackend.py | 6 |
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' ')' ) |