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
2cc1f955
Commit
2cc1f955
authored
4 years ago
by
Nicola Fulvio Calabria
Browse files
Options
Downloads
Patches
Plain Diff
Prepared deleted_node table for deleteNode method implementation in NodeDAO
parent
e8991e22
No related branches found
No related tags found
No related merge requests found
Pipeline
#916
passed
4 years ago
Stage: dockerize
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
00-init.sql
+35
-4
35 additions, 4 deletions
00-init.sql
with
35 additions
and
4 deletions
00-init.sql
+
35
−
4
View file @
2cc1f955
...
...
@@ -72,9 +72,40 @@ CREATE TABLE node (
CREATE
TABLE
deleted_node
(
node_id
BIGSERIAL
NOT
NULL
,
parent_path
LTREE
default
NULL
,
parent_relative_path
LTREE
default
NULL
,
name
VARCHAR
NOT
NULL
,
owner_id
VARCHAR
NOT
NULL
,
last_modified
TIMESTAMP
default
CURRENT_TIMESTAMP
,
os_name
VARCHAR
default
NULL
,
tstamp_wrapper_dir
VARCHAR
default
NULL
,
type
NodeType
NOT
NULL
,
location_type
LocationType
default
NULL
,
format
VARCHAR
default
NULL
,
-- format is used to distinguish between unstuctured (format=NULL) and structured nodes having a well defined format
async_trans
BOOLEAN
default
NULL
,
-- async_trans tells us whether a node is hosted on a cold storage and has to be transferred asynchronously
busy_state
BOOLEAN
default
NULL
,
owner_id
VARCHAR
default
NULL
,
creator_id
VARCHAR
default
NULL
,
group_read
VARCHAR
[]
default
NULL
,
group_write
VARCHAR
[]
default
NULL
,
is_public
BOOLEAN
default
NULL
,
delta
BIGINT
default
NULL
,
/* it may be a delta of data which is transferred through an asynchronous transfer.
It should stay on the transfer service (e.g. Redis) */
content_type
VARCHAR
default
NULL
,
content_encoding
VARCHAR
default
NULL
,
content_length
BIGINT
default
NULL
,
content_md5
TEXT
default
NULL
,
created_on
TIMESTAMP
default
NULL
,
last_modified
TIMESTAMP
default
NULL
,
-- link TEXT default NULL,
accept_views
TEXT
[]
default
NULL
,
provide_views
TEXT
[]
default
NULL
,
-- storage service mapping used to access the content of this node
-- storage_id VARCHAR,
protocols
TEXT
[]
default
NULL
,
-- add a deleted_on timestamp to keep track
deleted_on
TIMESTAMP
default
CURRENT_TIMESTAMP
,
PRIMARY
KEY
(
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