Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vospace-file-catalog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VOSpace INAF
vospace-file-catalog
Commits
0ed52020
Commit
0ed52020
authored
4 years ago
by
Sonia Zorba
Browse files
Options
Downloads
Patches
Plain Diff
Added structured NodeType and list_of_files table
parent
ef926594
No related branches found
No related tags found
No related merge requests found
Pipeline
#889
passed
4 years ago
Stage: dockerize
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
00-init.sql
+1
-1
1 addition, 1 deletion
00-init.sql
07-list-of-files.sql
+10
-0
10 additions, 0 deletions
07-list-of-files.sql
with
11 additions
and
1 deletion
00-init.sql
+
1
−
1
View file @
0ed52020
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
CREATE
EXTENSION
IF
NOT
EXISTS
ltree
;
CREATE
EXTENSION
IF
NOT
EXISTS
ltree
;
CREATE
TYPE
NodeType
AS
ENUM
(
'container'
,
'data'
,
'link'
);
CREATE
TYPE
NodeType
AS
ENUM
(
'container'
,
'data'
,
'link'
,
'structured'
);
CREATE
TYPE
LocationType
AS
ENUM
(
'virtual'
,
'tape'
,
'user'
,
'LBT'
);
CREATE
TYPE
LocationType
AS
ENUM
(
'virtual'
,
'tape'
,
'user'
,
'LBT'
);
CREATE
TABLE
node
(
CREATE
TABLE
node
(
...
...
This diff is collapsed.
Click to expand it.
07-list-of-files.sql
0 → 100644
+
10
−
0
View file @
0ed52020
-- Stores the content of StructuredDataNodes representing a list of files.
CREATE
TABLE
list_of_files
(
list_node_id
BIGSERIAL
NOT
NULL
,
node_id
BIGSERIAL
NOT
NULL
,
PRIMARY
KEY
(
list_node_id
,
node_id
),
FOREIGN
KEY
(
list_node_id
)
REFERENCES
node
(
node_id
),
FOREIGN
KEY
(
node_id
)
REFERENCES
node
(
node_id
)
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment