Compare commits

..

2 Commits

Author SHA1 Message Date
Vincent Riquer
d353579aa0 correctly handle skipped files during old files cleanup (#31) 2026-04-01 01:26:28 +02:00
Vincent Riquer
05b72b70d7 schema: remove unused column hash for newly created databases 2026-02-20 01:43:51 +01:00
2 changed files with 6 additions and 2 deletions

7
atom
View File

@ -226,7 +226,12 @@ do
rest=${line#*::AtOM:SQL:Sep::}
removeFileDestName=${rest%%::AtOM:SQL:Sep::*}
rest=${rest#*::AtOM:SQL:Sep::}
removefile[$removeFileId]="${destinationpath["$removeFileDestName"]}/${rest%%::AtOM:SQL:Sep::*}"
if [[ -n "${rest%%::AtOM:SQL:Sep::*}" ]]
then
removefile[$removeFileId]="${destinationpath["$removeFileDestName"]}/${rest%%::AtOM:SQL:Sep::*}"
else
removefile[$removeFileId]=''
fi
read -u4 -r -d $'\0' line
done
done

View File

@ -6,7 +6,6 @@ CREATE TABLE IF NOT EXISTS source_files (
id INTEGER PRIMARY KEY,
filename TEXT UNIQUE NOT NULL,
size INTEGER NOT NULL,
hash TEXT,
mime_type INTEGER,
last_change FLOAT NOT NULL DEFAULT (strftime('%s','now')),
last_seen INTEGER NOT NULL DEFAULT (strftime('%s','now')),