diff options
Diffstat (limited to 'schema.sql')
| -rw-r--r-- | schema.sql | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,8 +3,10 @@ create table if not exists torrents ( infohash character varying(40) unique, size bigint, name text, - seen timestamp with time zone + 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, |
