some filesystems support mtime with nanosecond - store in FLOAT
This commit is contained in:
parent
671a27988a
commit
c4f0a2da8f
@ -5,7 +5,7 @@ CREATE TABLE source_files (
|
||||
size INTEGER NOT NULL,
|
||||
hash TEXT,
|
||||
mime_type INTEGER,
|
||||
last_change INTEGER NOT NULL DEFAULT (strftime('%s','now')),
|
||||
last_change FLOAT NOT NULL DEFAULT (strftime('%s','now')),
|
||||
last_seen INTEGER NOT NULL DEFAULT (strftime('%s','now')),
|
||||
FOREIGN KEY (mime_type) REFERENCES mime_types(id)
|
||||
ON DELETE SET NULL
|
||||
@ -17,7 +17,7 @@ CREATE TABLE destinations (
|
||||
CREATE TABLE destination_files (
|
||||
id INTEGER PRIMARY KEY,
|
||||
filename TEXT,
|
||||
last_change INTEGER NOT NULL DEFAULT 0,
|
||||
last_change FLOAT NOT NULL DEFAULT 0,
|
||||
source_file_id INTEGER,
|
||||
destination_id INTEGER,
|
||||
FOREIGN KEY (source_file_id) REFERENCES source_files(id)
|
||||
@ -52,7 +52,7 @@ CREATE TABLE tags (
|
||||
performer TEXT,
|
||||
rate INTEGER,
|
||||
channels INTEGER,
|
||||
last_change INTEGER,
|
||||
last_change FLOAT,
|
||||
FOREIGN KEY (source_file) REFERENCES source_files(id)
|
||||
ON DELETE CASCADE
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user