parent
ed9031a3a3
commit
82d73c6e31
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
CREATE TABLE domain (
|
CREATE TABLE domain (
|
||||||
id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
|
id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
|
||||||
hostname text NOT NULL,
|
hostname text NOT NULL UNIQUE,
|
||||||
authoritative boolean NOT NULL,
|
authoritative boolean NOT NULL,
|
||||||
tags text[] NOT NULL,
|
tags text[] NOT NULL,
|
||||||
exclusion_patterns text[] NOT NULL DEFAULT '{}',
|
exclusion_patterns text[] NOT NULL DEFAULT '{}',
|
||||||
|
@ -24,4 +24,6 @@ CREATE TABLE page (
|
||||||
excerpt text
|
excerpt text
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX idx_page_content ON page USING GIN (fts_vector);
|
CREATE EXTENSION rum;
|
||||||
|
|
||||||
|
CREATE INDEX idx_page_content ON page USING RUM (fts_vector rum_tsvector_ops);
|
||||||
|
|
Loading…
Reference in a new issue