Skip to content
Snippets Groups Projects
Commit 02daee93 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added storage and location for exposing portal files

parent 8c9452a3
No related branches found
No related tags found
No related merge requests found
Pipeline #1016 passed
......@@ -31,7 +31,7 @@ CREATE EXTENSION IF NOT EXISTS ltree;
CREATE TYPE NodeType AS ENUM ('container', 'data', 'link', 'structured');
CREATE TYPE LocationType AS ENUM ('async', 'portal', 'user');
CREATE TYPE StorageType AS ENUM ('cold', 'hot', 'local');
CREATE TYPE StorageType AS ENUM ('cold', 'hot', 'local', 'portal');
CREATE TABLE storage (
......
......@@ -6,6 +6,7 @@ INSERT INTO storage (storage_type, base_path, hostname) VALUES ('cold', '/ia2_ta
INSERT INTO storage (storage_type, base_path, hostname) VALUES ('hot', '/mnt/hot_storage/users', 'server');
INSERT INTO storage (storage_type, base_path, hostname) VALUES ('local', '/home', 'localhost');
INSERT INTO storage (storage_type, base_path, hostname) VALUES ('local', '/home/vospace/upload', 'localhost');
INSERT INTO storage (storage_type, base_path, hostname) VALUES ('portal', '/files/new/lbt', 'archive.lbto.org');
/*
......@@ -15,6 +16,7 @@ INSERT INTO storage (storage_type, base_path, hostname) VALUES ('local', '/home/
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 ('portal', 5, 5);
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment