Commit 00f726d1 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[postgres] fix doc_count to be 0 by default

parent 376ddea3
Pipeline #3404 passed with stage
in 92 minutes and 10 seconds
......@@ -164,7 +164,7 @@ CREATE TABLE public.context_node_ngrams (
ngrams_id INTEGER NOT NULL REFERENCES public.ngrams (id) ON DELETE CASCADE,
ngrams_type INTEGER ,
weight double precision,
doc_count INTEGER,
doc_count INTEGER DEFAULT 0,
PRIMARY KEY (context_id, node_id, ngrams_id, ngrams_type)
);
ALTER TABLE public.context_node_ngrams OWNER TO gargantua;
......
ALTER TABLE context_node_ngrams
ADD COLUMN doc_count INTEGER;
ADD COLUMN doc_count INTEGER DEFAULT 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment