Compare commits

..

No commits in common. "31-old-files-cleanup-buggy" and "master" have entirely different histories.

2 changed files with 2 additions and 6 deletions

5
atom
View File

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

View File

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