From 97ec74936bb7788d6d24d7daa7b1216d3222d580 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Sun, 20 Apr 2003 21:26:26 +0000 Subject: [PATCH] (file): The filename, size, mtime, dir_id should be sufficient as a unique key. --- createdb.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/createdb.sql b/createdb.sql index 396c746..256e46d 100644 --- a/createdb.sql +++ b/createdb.sql @@ -32,7 +32,7 @@ create table file ( broken bool not null, INDEX(filename), - UNIQUE(filename, size, mtime, md5sum), + UNIQUE(filename, size, mtime, dir_id), INDEX(md5sum), INDEX(size) ); -- GitLab