Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
149
Issues
149
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
272964eb
Commit
272964eb
authored
Sep 08, 2022
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[postgres] fix 0.0.6.0 script name, sorting is better
parent
91a2d6e2
Pipeline
#3148
passed with stage
in 91 minutes and 45 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
docker-compose.yaml
devops/docker/docker-compose.yaml
+1
-1
schema.sql
devops/postgres/schema.sql
+8
-4
0.0.6.0.sql
devops/postgres/upgrade/0.0.6.0.sql
+0
-0
No files found.
devops/docker/docker-compose.yaml
View file @
272964eb
...
...
@@ -30,7 +30,7 @@ services:
POSTGRES_PASSWORD
:
C8kdcUrAQy66U
POSTGRES_DB
:
gargandbV5
volumes
:
-
garg-pgdata14:/var/lib/postgresql
-11
/data
-
garg-pgdata14:/var/lib/postgresql/data
-
../:/gargantext
-
../dbs:/dbs
-
../postgres/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
...
...
devops/postgres/schema.sql
View file @
272964eb
...
...
@@ -224,13 +224,18 @@ ALTER TABLE public.rights OWNER TO gargantua;
create
table
public
.
node_stories
(
id
SERIAL
,
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
),
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
;
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
(
...
...
@@ -328,4 +333,3 @@ CREATE OR REPLACE function node_pos(int, int) returns bigint
--drop index node_by_pos;
--create index node_by_pos on nodes using btree(node_pos(id,typename));
devops/postgres/upgrade/0.0.6.sql
→
devops/postgres/upgrade/0.0.6.
0.
sql
View file @
272964eb
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment