diff --git a/00-init.sql b/00-init.sql index 0137871fb3522675edf0e121697b38bd5462cbb0..c62f2276bbf0ef347e7f6aa87eb11d6ac96d1ba5 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 c61828db8464bd67954ca6f6a267911de0780582..a24926c86a53c9137602aaf160916c8d5b604a87 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); /*