From 6efff3f7abd2cddd2ab83de09d41bfa20ecc1808 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Sat, 19 Apr 2003 19:54:46 +0000 Subject: [PATCH] (file): Removed ctime and atime. Added mtime. Added sha1sum, verified and broken. --- createdb.sql | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/createdb.sql b/createdb.sql index ab1606e..c50d08d 100644 --- a/createdb.sql +++ b/createdb.sql @@ -20,13 +20,19 @@ create table file ( file_id int64 auto_increment primary key not null, filename varchar(255) not null, dir_id int64 not null references base(dir_id), - ctime datetime not null, - atime datetime not null, + mtime datetime not null, size int64 not null, - md5sum char(32) not null, + md5sum char(32) not null, + sha1sum char(40) not null, + + # When was the on-line file last verified? + verified datetime not null, + + # Set if the on-line file is missing or modified. + broken bool not null, INDEX(filename), - UNIQUE(filename, size, ctime, atime, md5sum), + UNIQUE(filename, size, mtime, md5sum), INDEX(md5sum), INDEX(size) ); -- GitLab