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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VOSpace INAF
vospace-file-catalog
Commits
0b5d6153
Commit
0b5d6153
authored
4 years ago
by
Cristiano Urban
Browse files
Options
Downloads
Patches
Plain Diff
Added 'local' to StorageType enum + fixed typo.
Signed-off-by:
Cristiano Urban
<
cristiano.urban@inaf.it
>
parent
29aeed12
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#927
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
05-data.sql
+15
-7
15 additions, 7 deletions
05-data.sql
with
16 additions
and
8 deletions
00-init.sql
+
1
−
1
View file @
0b5d6153
...
@@ -31,7 +31,7 @@ CREATE EXTENSION IF NOT EXISTS ltree;
...
@@ -31,7 +31,7 @@ CREATE EXTENSION IF NOT EXISTS ltree;
CREATE
TYPE
NodeType
AS
ENUM
(
'container'
,
'data'
,
'link'
,
'structured'
);
CREATE
TYPE
NodeType
AS
ENUM
(
'container'
,
'data'
,
'link'
,
'structured'
);
CREATE
TYPE
LocationType
AS
ENUM
(
'async'
,
'portal'
,
'user'
);
CREATE
TYPE
LocationType
AS
ENUM
(
'async'
,
'portal'
,
'user'
);
CREATE
TYPE
StorageType
AS
ENUM
(
'cold'
,
'hot'
);
CREATE
TYPE
StorageType
AS
ENUM
(
'cold'
,
'hot'
,
'local'
);
CREATE
TABLE
storage
(
CREATE
TABLE
storage
(
...
...
This diff is collapsed.
Click to expand it.
05-data.sql
+
15
−
7
View file @
0b5d6153
/*
/*
Initialization test for
vospace node table; for now owner_id and group_id are set equal to the rap_id
Initialization test for
storage table
*/
*/
INSERT
INTO
storage
(
storage_type
,
base_path
,
hostname
)
VALUES
(
'cold'
,
'/ia2_tape_stb_01/users'
,
'tape-fe.ia2.inaf.it'
);
INSERT
INTO
storage
(
storage_type
,
base_path
,
hostname
)
VALUES
(
'cold'
,
'/ia2_tape_stb_01/users'
,
'tape-fe.ia2.inaf.it'
);
INSERT
INTO
storage
(
storage_type
,
base_path
,
hostname
)
VALUES
(
'hot'
,
'/home/users'
,
'server'
);
INSERT
INTO
storage
(
storage_type
,
base_path
,
hostname
)
VALUES
(
'hot'
,
'/home/users'
,
'server'
);
INSERT
INTO
storage
(
storage_type
,
base_path
,
hostname
)
VALUES
(
'hot'
,
'/home'
,
'localhost'
);
INSERT
INTO
storage
(
storage_type
,
base_path
,
hostname
)
VALUES
(
'local'
,
'/home'
,
'localhost'
);
INSERT
INTO
storage
(
storage_type
,
base_path
,
hostname
)
VALUES
(
'hot'
,
'/home/vospace/upload'
,
'localhost'
);
INSERT
INTO
storage
(
storage_type
,
base_path
,
hostname
)
VALUES
(
'local'
,
'/home/vospace/upload'
,
'localhost'
);
/*
Initialization test for location table
*/
INSERT
INTO
location
(
location_type
,
storage_src_id
,
storage_dest_id
)
VALUES
(
'async'
,
1
,
3
);
INSERT
INTO
location
(
location_type
,
storage_src_id
,
storage_dest_id
)
VALUES
(
'async'
,
1
,
3
);
INSERT
INTO
location
(
location_type
,
storage_src_id
,
storage_dest_id
)
VALUES
(
'async'
,
1
,
3
);
INSERT
INTO
location
(
location_type
,
storage_src_id
,
storage_dest_id
)
VALUES
(
'async'
,
2
,
3
);
INSERT
INTO
location
(
location_type
,
storage_src_id
,
storage_dest_id
)
VALUES
(
'user'
,
4
,
4
);
INSERT
INTO
location
(
location_type
,
storage_src_id
,
storage_dest_id
)
VALUES
(
'user'
,
4
,
4
);
/*
Initialization test for vospace node table; for now owner_id and group_id are set equal to the rap_id
*/
-- parent_path = parent_relative_path
-- parent_path = parent_relative_path
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
owner_id
,
creator_id
)
VALUES
(
NULL
,
NULL
,
''
,
'container'
,
'0'
,
'0'
);
-- /
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
owner_id
,
creator_id
)
VALUES
(
NULL
,
NULL
,
''
,
'container'
,
'0'
,
'0'
);
-- /
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
owner_id
,
creator_id
)
VALUES
(
''
,
''
,
'curban'
,
'container'
,
'3354'
,
'3354'
);
-- /curban
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
owner_id
,
creator_id
)
VALUES
(
''
,
''
,
'curban'
,
'container'
,
'3354'
,
'3354'
);
-- /curban
...
@@ -22,9 +33,6 @@ INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creat
...
@@ -22,9 +33,6 @@ INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creat
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
os_name
,
type
,
owner_id
,
creator_id
,
location_id
)
VALUES
(
'5.6'
,
'6'
,
'f2_renamed'
,
'f2'
,
'container'
,
'2386'
,
'2386'
,
1
);
-- /test/f1/f2_renamed (rel: /f1/f2)
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
os_name
,
type
,
owner_id
,
creator_id
,
location_id
)
VALUES
(
'5.6'
,
'6'
,
'f2_renamed'
,
'f2'
,
'container'
,
'2386'
,
'2386'
,
1
);
-- /test/f1/f2_renamed (rel: /f1/f2)
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
owner_id
,
creator_id
,
location_id
)
VALUES
(
'5.6.7'
,
'6.7'
,
'f3'
,
'data'
,
'2386'
,
'2386'
,
1
);
-- /test/f1/f2_renamed/f3 (rel: /f1/f2/f3)
INSERT
INTO
node
(
parent_path
,
parent_relative_path
,
name
,
type
,
owner_id
,
creator_id
,
location_id
)
VALUES
(
'5.6.7'
,
'6.7'
,
'f3'
,
'data'
,
'2386'
,
'2386'
,
1
);
-- /test/f1/f2_renamed/f3 (rel: /f1/f2/f3)
/*
Initialization test for location table
*/
/*
/*
Initialization test for vospace users table
Initialization test for vospace users table
...
...
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