schema: add default for domain tags

This commit is contained in:
Drew DeVault 2022-07-13 10:20:27 +02:00
parent cbd3732deb
commit 69cf99e367

View file

@ -2,7 +2,7 @@ CREATE TABLE domain (
id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
hostname text NOT NULL UNIQUE,
authoritative boolean NOT NULL,
tags text[] NOT NULL,
tags text[] NOT NULL DEFAULT '{}',
exclusion_patterns text[] NOT NULL DEFAULT '{}',
last_index_date timestamptz,
crawl_duration interval