change column name, remove useless columns
This commit is contained in:
parent
6d45a634b7
commit
611d4ad1af
@ -9,14 +9,12 @@ CREATE TABLE source_files (
|
|||||||
);
|
);
|
||||||
CREATE TABLE destinations (
|
CREATE TABLE destinations (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
path TEXT UNIQUE NOT NULL
|
name TEXT UNIQUE NOT NULL
|
||||||
);
|
);
|
||||||
CREATE TABLE destination_files (
|
CREATE TABLE destination_files (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
filename TEXT UNIQUE NOT NULL,
|
filename TEXT UNIQUE NOT NULL,
|
||||||
last_change INTEGER NOT NULL DEFAULT (strftime('%s','now')),
|
last_change INTEGER NOT NULL DEFAULT (strftime('%s','now')),
|
||||||
to_delete NOT NULL DEFAULT 0,
|
|
||||||
update_needed NOT NULL DEFAULT 1,
|
|
||||||
source_file_id INTEGER,
|
source_file_id INTEGER,
|
||||||
destination_id INTEGER,
|
destination_id INTEGER,
|
||||||
FOREIGN KEY (source_file_id) REFERENCES source_files(id),
|
FOREIGN KEY (source_file_id) REFERENCES source_files(id),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user