update, and allow non-mount data
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
cat <<'EOF' | sqlite3 "$1"
|
||||
|
||||
CREATE TABLE IF NOT EXISTS files (
|
||||
token text PRIMARY KEY,
|
||||
name text NOT NULL,
|
||||
@@ -13,12 +14,18 @@ CREATE TABLE IF NOT EXISTS files (
|
||||
allowed_ip text,
|
||||
hidden boolean
|
||||
);
|
||||
EOF
|
||||
|
||||
cat <<'EOF' | sqlite3 "$1"
|
||||
CREATE TABLE IF NOT EXISTS upload_tokens (
|
||||
token text PRIMARY KEY,
|
||||
added integer NOT NULL,
|
||||
expires integer NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS tasks (
|
||||
key text PRIMARY KEY,
|
||||
value integer NOT NULL
|
||||
);
|
||||
|
||||
INSERT OR IGNORE INTO tasks(key,value) VALUES('maintenance',0);
|
||||
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user