summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-01 18:57:18 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-01 18:57:18 +0200
commit4ebe6b095e66caa5764e08486aeac46b32df0866 (patch)
treed4687f7ebcc203d039708264d5058a11908e2ed8 /module/FileDatabase.py
parentocr + db fix (diff)
downloadpyload-4ebe6b095e66caa5764e08486aeac46b32df0866.tar.xz
wait fix
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index b52acd4d0..8daacf050 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -353,7 +353,7 @@ class FileDatabaseBackend(Thread):
"""create tables for database"""
self.c.execute('CREATE TABLE IF NOT EXISTS "packages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT, "name" TEXT NOT NULL, "folder" TEXT, "password" TEXT, "site" TEXT, "queue" INTEGER DEFAULT 0 NOT NULL)')
- self.c.execute('CREATE TABLE IF NOT EXISTS "links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT, "url" TEXT NOT NULL, "name" TEXT, "size" INTEGER DEFAULT 0 NOT NULL, "status" INTEGER DEFAULT 3 NOT NULL, "plugin" TEXT DEFAULT "BasePlugin" NOT NULL, "error" TEXT, "package" INTEGER DEFAULT 0 NOT NULL, FOREIGN KEY(package) REFERENCES packages(id))')
+ self.c.execute('CREATE TABLE IF NOT EXISTS "links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT, "url" TEXT NOT NULL, "name" TEXT, "size" INTEGER DEFAULT 0 NOT NULL, "status" INTEGER DEFAULT 3 NOT NULL, "plugin" TEXT DEFAULT "BasePlugin" NOT NULL, "error" TEXT DEFAULT "", "package" INTEGER DEFAULT 0 NOT NULL, FOREIGN KEY(package) REFERENCES packages(id))')
self.c.execute('CREATE INDEX IF NOT EXISTS "pIdIndex" ON links(package)')
self.c.execute('VACUUM')