From e467c48f3c5ff1a80c03129fddf5d84272cee456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Thu, 22 Sep 2011 12:57:39 +0200 Subject: [PATCH] =?UTF-8?q?Ne=20pas=20cr=C3=A9er=20la=20table=20removedfil?= =?UTF-8?q?es=20quand=20elle=20existe=20d=C3=A9j=C3=A0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- updatehash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updatehash.py b/updatehash.py index c583b8f..bbeee57 100755 --- a/updatehash.py +++ b/updatehash.py @@ -28,7 +28,7 @@ def initdb(cursor): cursor.execute("create table if not exists files(tag,timestamp,path primary key,md5,sha1,mtime,size)") cursor.execute("create index if not exists i_files_tag on files(tag)") cursor.execute("create index if not exists i_files_path_md5_sha1 on files(path,md5,sha1)") - cursor.execute("create table removedfiles(rmtimestamp,tag,timestamp,path,md5,sha1,mtime,size)") + cursor.execute("create table if not exists removedfiles(rmtimestamp,tag,timestamp,path,md5,sha1,mtime,size)") def cacheFileInfo(cursor, path): cursor.execute('select mtime,size from files where path = ?', (path,))