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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Julien Moutinho
haskell-gargantext
Commits
323c3500
Verified
Commit
323c3500
authored
Jul 27, 2023
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[postgres] fix CREATE UNIQUE INDEX statement
IF NOT EXISTS makes sense only when you provide the name of the index.
parent
47808735
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
schema.sql
devops/postgres/schema.sql
+2
-7
No files found.
devops/postgres/schema.sql
View file @
323c3500
...
...
@@ -265,14 +265,14 @@ CREATE INDEX ON public.nodes USING btree (user_id, typename, parent_id);
CREATE
INDEX
ON
public
.
nodes
USING
btree
(
id
,
typename
,
date
ASC
);
CREATE
INDEX
ON
public
.
nodes
USING
btree
(
id
,
typename
,
date
DESC
);
CREATE
INDEX
ON
public
.
nodes
USING
btree
(
typename
,
id
);
CREATE
UNIQUE
INDEX
IF
NOT
EXISTS
ON
public
.
nodes
USING
btree
(
hash_id
);
CREATE
UNIQUE
INDEX
ON
public
.
nodes
USING
btree
(
hash_id
);
CREATE
INDEX
ON
public
.
contexts
USING
gin
(
hyperdata
);
CREATE
INDEX
ON
public
.
contexts
USING
btree
(
user_id
,
typename
,
parent_id
);
CREATE
INDEX
ON
public
.
contexts
USING
btree
(
id
,
typename
,
date
ASC
);
CREATE
INDEX
ON
public
.
contexts
USING
btree
(
id
,
typename
,
date
DESC
);
CREATE
INDEX
ON
public
.
contexts
USING
btree
(
typename
,
id
);
CREATE
UNIQUE
INDEX
IF
NOT
EXISTS
ON
public
.
contexts
USING
btree
(
hash_id
);
CREATE
UNIQUE
INDEX
ON
public
.
contexts
USING
btree
(
hash_id
);
CREATE
INDEX
ON
public
.
nodescontexts_nodescontexts
USING
btree
(
nodescontexts1
,
nodescontexts2
);
-- CREATE UNIQUE INDEX ON public.nodes USING btree (((hyperdata ->> 'uniqId'::text)));
...
...
@@ -436,8 +436,3 @@ EXECUTE PROCEDURE check_node_stories_json();
ON
ngrams
FOR
EACH
ROW
EXECUTE
PROCEDURE
check_ngrams_json
();
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