From 51d15bc04924a5e02d81fa03c72871f5b1ae1e2e Mon Sep 17 00:00:00 2001 From: Sonia Zorba <sonia.zorba@inaf.it> Date: Fri, 30 Apr 2021 16:49:41 +0200 Subject: [PATCH] Removed owner_id column --- 00-init.sql | 2 -- 05-data.sql | 18 +++++++++--------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/00-init.sql b/00-init.sql index 8e19a29..e274457 100644 --- a/00-init.sql +++ b/00-init.sql @@ -70,7 +70,6 @@ CREATE TABLE node ( -- async_trans tells us whether a node is hosted on a cold storage and has to be transferred asynchronously sticky BOOLEAN default false, busy_state BOOLEAN default NULL, - owner_id VARCHAR default NULL, creator_id VARCHAR default NULL, group_read VARCHAR[] default NULL, group_write VARCHAR[] default NULL, @@ -110,7 +109,6 @@ CREATE TABLE deleted_node ( -- async_trans tells us whether a node is hosted on a cold storage and has to be transferred asynchronously sticky BOOLEAN default false, busy_state BOOLEAN default NULL, - owner_id VARCHAR default NULL, creator_id VARCHAR default NULL, group_read VARCHAR[] default NULL, group_write VARCHAR[] default NULL, diff --git a/05-data.sql b/05-data.sql index 86c7270..27bda08 100644 --- a/05-data.sql +++ b/05-data.sql @@ -20,20 +20,20 @@ INSERT INTO location (location_type, storage_src_id, storage_dest_id) VALUES ('p /* - Initialization test for vospace node table; for now owner_id and group_id are set equal to the user_id + Initialization test for vospace node table */ -- parent_path = parent_relative_path -INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id, is_public, sticky) VALUES (NULL, NULL, '', 'container', '0', '0', true, true); -- / -INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id, sticky) VALUES ('', NULL, 'cristiano.urban', 'container', '3354', '3354', true); -- /curban -INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id, sticky) VALUES ('', NULL, 'sara.bertocco', 'container', '2048', '2048', true); -- /sbertocco -INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id, sticky) VALUES ('', NULL, 'sonia.zorba', 'container', '2386', '2386', true); -- /szorba +INSERT INTO node (parent_path, parent_relative_path, name, type, creator_id, is_public, sticky) VALUES (NULL, NULL, '', 'container', '0', true, true); -- / +INSERT INTO node (parent_path, parent_relative_path, name, type, creator_id, sticky) VALUES ('', NULL, 'cristiano.urban', 'container', '3354', true); -- /curban +INSERT INTO node (parent_path, parent_relative_path, name, type, creator_id, sticky) VALUES ('', NULL, 'sara.bertocco', 'container', '2048', true); -- /sbertocco +INSERT INTO node (parent_path, parent_relative_path, name, type, creator_id, sticky) VALUES ('', NULL, 'sonia.zorba', 'container', '2386', true); -- /szorba -- parent_path <> parent_relative_path -INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id, group_read, group_write) VALUES ('', NULL, 'test', 'container', '2386', '2386', '{"VOSpace.test1"}','{"VOSpace.test1"}'); -- /test -INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id) VALUES ('5', '', 'f1', 'container', '2386', '2386'); -- /test/f1 (rel: /f1) -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, creator_id, group_read, group_write) VALUES ('', NULL, 'test', 'container', '2386', '{"VOSpace.test1"}','{"VOSpace.test1"}'); -- /test +INSERT INTO node (parent_path, parent_relative_path, name, type, creator_id) VALUES ('5', '', 'f1', 'container', '2386'); -- /test/f1 (rel: /f1) +INSERT INTO node (parent_path, parent_relative_path, name, os_name, type, creator_id, location_id) VALUES ('5.6', '6', 'f2_renamed', 'f2', 'container', '2386', 1); -- /test/f1/f2_renamed (rel: /f1/f2) +INSERT INTO node (parent_path, parent_relative_path, name, type, creator_id, location_id) VALUES ('5.6.7', '6.7', 'f3', 'data', '2386', 1); -- /test/f1/f2_renamed/f3 (rel: /f1/f2/f3) /* -- GitLab