www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit e467c48f3c5ff1a80c03129fddf5d84272cee456
parent ea4c1389ba7fd3f77160ea68d0e56e510e42a15b
Author: Georges Dupéron <jahvascriptmaniac+github@free.fr>
Date:   Thu, 22 Sep 2011 12:57:39 +0200

Ne pas créer la table removedfiles quand elle existe déjà.

Diffstat:
Mupdatehash.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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,))