aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2018-02-26 11:25:55 +0000
committerFelix Hanley <felix@userspace.com.au>2018-02-26 11:25:55 +0000
commit6e449039520843c8df5203d6a16a0c6fadfe312b (patch)
tree4f79134dc7abaf59350792982ede2c9d97f69cb6
parent40732d76b81aa16ed38d855e93ce82387d29643f (diff)
downloaddhtsearch-6e449039520843c8df5203d6a16a0c6fadfe312b.tar.gz
dhtsearch-6e449039520843c8df5203d6a16a0c6fadfe312b.tar.bz2
Remove some files
-rw-r--r--config.toml.sample14
-rw-r--r--schema.sql24
2 files changed, 0 insertions, 38 deletions
diff --git a/config.toml.sample b/config.toml.sample
deleted file mode 100644
index dedd166..0000000
--- a/config.toml.sample
+++ /dev/null
@@ -1,14 +0,0 @@
-# Move to config.toml in the same directory as the binary.
-# All command line arguments are accepted plus some more.
-
-base_port = 6881
-num_nodes = 1
-debug = false
-quiet = false
-dsn = "postgres://dht:dht@localhost/dht?sslmode=disable"
-no_http = false
-http_address = "localhost:6880"
-skip_tags = ["adult"]
-
-[tags]
-test = "\\.asdfasdfsdfsfdsfs"
diff --git a/schema.sql b/schema.sql
deleted file mode 100644
index 5ab895c..0000000
--- a/schema.sql
+++ /dev/null
@@ -1,24 +0,0 @@
-create table if not exists torrents (
- id serial not null primary key,
- infohash character varying(40) unique,
- size bigint,
- name text,
- seen timestamp with time zone,
- tsv tsvector
-);
-create index tsv_idx on torrents using gin(tsv);
-create table if not exists files (
- id serial not null primary key,
- torrent_id integer not null references torrents on delete cascade,
- path text,
- size bigint
-);
-create table if not exists tags (
- id serial not null primary key,
- name text
-);
-create table if not exists tags_torrents (
- tag_id integer not null references tags on delete cascade,
- torrent_id integer not null references torrents on delete cascade,
- primary key (tag_id, torrent_id)
-);