diff --git a/00-init.sql b/00-init.sql index 8e19a29a8811fdeda5af50c51619bb3146c9dc5f..e274457793218dec4cd8c82698022e1e3a859969 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 86c72705c4c678a63503069c9fd803cbc5733d30..27bda0885782401ba0dfac5170d6a56fae195766 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) /*