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
145
Issues
145
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
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
6e9a3233
Commit
6e9a3233
authored
Jan 07, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DB] Schema Node_Cgrams_Cgrams
parent
7f48ce14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
schema.sql
devops/postgres/schema.sql
+5
-7
List.hs
src/Gargantext/Database/Flow/List.hs
+1
-1
Node_NodeNgramsNodeNgrams.hs
src/Gargantext/Database/Schema/Node_NodeNgramsNodeNgrams.hs
+1
-1
No files found.
devops/postgres/schema.sql
View file @
6e9a3233
...
...
@@ -60,18 +60,16 @@ CREATE TABLE public.node_ngrams (
);
ALTER
TABLE
public
.
node_ngrams
OWNER
TO
gargantua
;
CREATE
TABLE
public
.
node_node_ngrams_ngrams
(
node1_id
integer
NOT
NULL
,
node2_id
integer
NOT
NULL
,
CREATE
TABLE
public
.
node_ngrams_ngrams
(
node_id
integer
NOT
NULL
,
node_ngrams1_id
integer
NOT
NULL
,
node_ngrams2_id
integer
NOT
NULL
,
FOREIGN
KEY
(
node1_id
)
REFERENCES
public
.
nodes
(
id
)
ON
DELETE
CASCADE
,
FOREIGN
KEY
(
node2_id
)
REFERENCES
public
.
nodes
(
id
)
ON
DELETE
CASCADE
,
FOREIGN
KEY
(
node_id
)
REFERENCES
public
.
nodes
(
id
)
ON
DELETE
CASCADE
,
FOREIGN
KEY
(
node_ngrams1_id
)
REFERENCES
public
.
node_ngrams
(
id
)
ON
DELETE
CASCADE
,
FOREIGN
KEY
(
node_ngrams2_id
)
REFERENCES
public
.
node_ngrams
(
id
)
ON
DELETE
CASCADE
,
PRIMARY
KEY
(
node
1_id
,
node2
_id
,
node_ngrams1_id
,
node_ngrams2_id
)
PRIMARY
KEY
(
node_id
,
node_ngrams1_id
,
node_ngrams2_id
)
);
ALTER
TABLE
public
.
node_n
ode_n
grams_ngrams
OWNER
TO
gargantua
;
ALTER
TABLE
public
.
node_ngrams_ngrams
OWNER
TO
gargantua
;
--------------------------------------------------------------
--------------------------------------------------------------
...
...
src/Gargantext/Database/Flow/List.hs
View file @
6e9a3233
...
...
@@ -75,7 +75,7 @@ flowList :: FlowCmdM env err m
->
Map
NgramsType
[
NgramsElement
]
->
m
ListId
flowList
lId
ngs
=
do
printDebug
"listId flowList"
lId
--
printDebug "listId flowList" lId
-- TODO save in database
_r
<-
listInsertDb
lId
toNodeNgramsW
(
Map
.
toList
ngs
)
-- printDebug "result " r
...
...
src/Gargantext/Database/Schema/Node_NodeNgrams
_
NodeNgrams.hs
→
src/Gargantext/Database/Schema/Node_NodeNgramsNodeNgrams.hs
View file @
6e9a3233
...
...
@@ -32,7 +32,7 @@ Next Step benchmark:
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module
Gargantext.Database.Schema.Node_NodeNgrams
_
NodeNgrams
module
Gargantext.Database.Schema.Node_NodeNgramsNodeNgrams
where
import
Control.Lens.TH
(
makeLensesWith
,
abbreviatedFields
)
...
...
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