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
198
Issues
198
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
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
b9028127
Commit
b9028127
authored
Sep 30, 2021
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UPGRADE] execute devops/postgres/upgrade/0.0.4.sql to your database to upgrade
parent
966bc15d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
0.0.4.sql
devops/postgres/upgrade/0.0.4.sql
+12
-0
Flow.hs
src/Gargantext/Database/Action/Flow.hs
+1
-1
No files found.
devops/postgres/upgrade/0.0.4.sql
0 → 100644
View file @
b9028127
ALTER
TABLE
nodes
DROP
COLUMN
IF
EXISTS
search_title
,
DROP
COLUMN
IF
EXISTS
tsvector
;
ALTER
TABLE
nodes
ADD
COLUMN
search_title
tsvector
;
UPDATE
nodes
SET
search_title
=
to_tsvector
(
'english'
,
coalesce
(
"hyperdata"
->>
'title'
,
''
)
||
' '
||
coalesce
(
"hyperdata"
->>
'abstract'
,
''
));
CREATE
INDEX
search_title_idx
ON
nodes
USING
GIN
(
search_title
);
src/Gargantext/Database/Action/Flow.hs
View file @
b9028127
...
...
@@ -102,7 +102,7 @@ import qualified Gargantext.Core.Text.Corpus.API as API
import
qualified
Gargantext.Database.Query.Table.Node.Document.Add
as
Doc
(
add
)
------------------------------------------------------------------------
-- Impots for upgrade function
-- Impo
r
ts for upgrade function
import
Gargantext.Database.Query.Tree.Root
(
getRootId
)
import
Gargantext.Database.Query.Tree
(
findNodesId
)
import
qualified
Data.List
as
List
...
...
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