From 02daee9326cf731ffbeb716f83f4e9bc18bb9ae6 Mon Sep 17 00:00:00 2001 From: Sonia Zorba <sonia.zorba@inaf.it> Date: Mon, 15 Feb 2021 11:54:41 +0100 Subject: [PATCH] Added storage and location for exposing portal files --- 00-init.sql | 2 +- 05-data.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/00-init.sql b/00-init.sql index 0137871..c62f227 100644 --- a/00-init.sql +++ b/00-init.sql @@ -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 ( diff --git a/05-data.sql b/05-data.sql index c61828d..a24926c 100644 --- a/05-data.sql +++ b/05-data.sql @@ -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); /* -- GitLab