new
This commit is contained in:
13
code/init_db.sh
Normal file
13
code/init_db.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
cat <<'EOF' | sqlite3 "$1"
|
||||
CREATE TABLE IF NOT EXISTS files (
|
||||
token text PRIMARY KEY,
|
||||
name text NOT NULL,
|
||||
added integer NOT NULL,
|
||||
expires integer NOT NULL,
|
||||
downloads integer NOT NULL,
|
||||
max_downloads integer NOT NULL
|
||||
);
|
||||
EOF
|
||||
Reference in New Issue
Block a user