From 892b102d3c24cdde448d36c6ced35a75e368fe8c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 26 Dec 2018 22:49:41 -0800 Subject: webcapture: status_code nullable; cdx timestamp string --- rust/migrations/2018-05-12-001226_init/up.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/migrations') diff --git a/rust/migrations/2018-05-12-001226_init/up.sql b/rust/migrations/2018-05-12-001226_init/up.sql index 9b6a00a6..eadc2e8a 100644 --- a/rust/migrations/2018-05-12-001226_init/up.sql +++ b/rust/migrations/2018-05-12-001226_init/up.sql @@ -256,10 +256,10 @@ CREATE TABLE webcapture_rev_cdx ( id BIGSERIAL PRIMARY KEY, webcapture_rev UUID REFERENCES webcapture_rev(id) NOT NULL, surt TEXT NOT NULL, - timestamp BIGINT NOT NULL, -- TODO: timestamp type, or text? + timestamp TEXT NOT NULL, -- TODO: timestamp type? url TEXT NOT NULL, mimetype TEXT, - status_code BIGINT NOT NULL, + status_code BIGINT, sha1 TEXT CHECK(octet_length(sha1) = 40) NOT NULL, sha256 TEXT CHECK(octet_length(sha256) = 64) -- could extend with: language (detection), simhash, redirect -- cgit v1.2.3