Commit 02daee93 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added storage and location for exposing portal files

parent 8c9452a3
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 (
+2 −0
Original line number Diff line number Diff line
@@ -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);


/*