Commit 272964eb authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[postgres] fix 0.0.6.0 script name, sorting is better

parent 91a2d6e2
Pipeline #3148 passed with stage
in 91 minutes and 45 seconds
...@@ -30,7 +30,7 @@ services: ...@@ -30,7 +30,7 @@ services:
POSTGRES_PASSWORD: C8kdcUrAQy66U POSTGRES_PASSWORD: C8kdcUrAQy66U
POSTGRES_DB: gargandbV5 POSTGRES_DB: gargandbV5
volumes: volumes:
- garg-pgdata14:/var/lib/postgresql-11/data - garg-pgdata14:/var/lib/postgresql/data
- ../:/gargantext - ../:/gargantext
- ../dbs:/dbs - ../dbs:/dbs
- ../postgres/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro - ../postgres/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
......
...@@ -224,13 +224,18 @@ ALTER TABLE public.rights OWNER TO gargantua; ...@@ -224,13 +224,18 @@ ALTER TABLE public.rights OWNER TO gargantua;
create table public.node_stories ( create table public.node_stories (
id SERIAL, id SERIAL,
node_id INTEGER NOT NULL, node_id INTEGER NOT NULL,
archive jsonb DEFAULT '{}'::jsonb NOT NULL, version INTEGER NOT NULL,
ngrams_type_id INTEGER NOT NULL,
ngrams_id INTEGER NOT NULL,
--children TEXT[],
ngrams_repo_element jsonb DEFAULT '{}'::jsonb NOT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
FOREIGN KEY (node_id) REFERENCES public.nodes(id) ON DELETE CASCADE FOREIGN KEY (node_id) REFERENCES public.nodes(id) ON DELETE CASCADE,
FOREIGN KEY (ngrams_id) REFERENCES public.ngrams(id) ON DELETE CASCADE
); );
ALTER TABLE public.node_stories OWNER TO gargantua; ALTER TABLE public.node_stories OWNER TO gargantua;
CREATE UNIQUE INDEX ON public.node_stories USING btree (node_id); CREATE UNIQUE INDEX ON public.node_stories USING btree (node_id, ngrams_type_id, ngrams_id);
create table public.node_story_archive_history ( create table public.node_story_archive_history (
...@@ -328,4 +333,3 @@ CREATE OR REPLACE function node_pos(int, int) returns bigint ...@@ -328,4 +333,3 @@ CREATE OR REPLACE function node_pos(int, int) returns bigint
--drop index node_by_pos; --drop index node_by_pos;
--create index node_by_pos on nodes using btree(node_pos(id,typename)); --create index node_by_pos on nodes using btree(node_pos(id,typename));
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