From 8c9452a3581b15c0de92c363372c51a9ee00df0f Mon Sep 17 00:00:00 2001
From: Sonia Zorba <sonia.zorba@inaf.it>
Date: Mon, 8 Feb 2021 17:53:31 +0100
Subject: [PATCH] Set sticky flag to true to home nodes and root

---
 05-data.sql | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/05-data.sql b/05-data.sql
index af69f94..c61828d 100644
--- a/05-data.sql
+++ b/05-data.sql
@@ -23,10 +23,10 @@ INSERT INTO location (location_type, storage_src_id, storage_dest_id) VALUES ('u
 
 
 -- parent_path = parent_relative_path
-INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id, is_public) VALUES (NULL, NULL, '', 'container', '0', '0', true);                                                                                -- /
-INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id) VALUES ('', NULL, 'curban', 'container', '3354', '3354');                                                                        -- /curban
-INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id) VALUES ('', NULL, 'sbertocco', 'container', '2048', '2048');                                                                     -- /sbertocco
-INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id) VALUES ('', NULL, 'szorba', 'container', '2386', '2386');                                                                        -- /szorba
+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, 'curban', 'container', '3354', '3354', true);                                                                        -- /curban
+INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id, sticky) VALUES ('', NULL, 'sbertocco', 'container', '2048', '2048', true);                                                                     -- /sbertocco
+INSERT INTO node (parent_path, parent_relative_path, name, type, owner_id, creator_id, sticky) VALUES ('', NULL, 'szorba', 'container', '2386', '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)
-- 
GitLab