Skip to content
Snippets Groups Projects
Commit 51d15bc0 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Removed owner_id column

parent b21779ae
No related branches found
No related tags found
No related merge requests found
Pipeline #1691 passed
...@@ -70,7 +70,6 @@ CREATE TABLE node ( ...@@ -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 -- async_trans tells us whether a node is hosted on a cold storage and has to be transferred asynchronously
sticky BOOLEAN default false, sticky BOOLEAN default false,
busy_state BOOLEAN default NULL, busy_state BOOLEAN default NULL,
owner_id VARCHAR default NULL,
creator_id VARCHAR default NULL, creator_id VARCHAR default NULL,
group_read VARCHAR[] default NULL, group_read VARCHAR[] default NULL,
group_write VARCHAR[] default NULL, group_write VARCHAR[] default NULL,
...@@ -110,7 +109,6 @@ CREATE TABLE deleted_node ( ...@@ -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 -- async_trans tells us whether a node is hosted on a cold storage and has to be transferred asynchronously
sticky BOOLEAN default false, sticky BOOLEAN default false,
busy_state BOOLEAN default NULL, busy_state BOOLEAN default NULL,
owner_id VARCHAR default NULL,
creator_id VARCHAR default NULL, creator_id VARCHAR default NULL,
group_read VARCHAR[] default NULL, group_read VARCHAR[] default NULL,
group_write VARCHAR[] default NULL, group_write VARCHAR[] default NULL,
......
...@@ -20,20 +20,20 @@ INSERT INTO location (location_type, storage_src_id, storage_dest_id) VALUES ('p ...@@ -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 -- 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, creator_id, is_public, sticky) VALUES (NULL, NULL, '', 'container', '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, creator_id, sticky) VALUES ('', NULL, 'cristiano.urban', 'container', '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, creator_id, sticky) VALUES ('', NULL, 'sara.bertocco', 'container', '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, sticky) VALUES ('', NULL, 'sonia.zorba', 'container', '2386', true); -- /szorba
-- parent_path <> parent_relative_path -- 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, 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, owner_id, creator_id) VALUES ('5', '', 'f1', 'container', '2386', '2386'); -- /test/f1 (rel: /f1) 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, 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, 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, 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, location_id) VALUES ('5.6.7', '6.7', 'f3', 'data', '2386', 1); -- /test/f1/f2_renamed/f3 (rel: /f1/f2/f3)
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment