From c690bdcee513023fed13d8a088ad2f05789c2247 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 13 Feb 2003 09:48:18 +0000 Subject: [PATCH] removed test folders --- sql/tables.sql | 195 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1 file changed, 0 insertions(+), 195 deletions(-) diff --git a/sql/tables.sql b/sql/tables.sql index 0b82294..5270594 100644 --- a/sql/tables.sql +++ b/sql/tables.sql @@ -808,55 +808,6 @@ INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, VALUES ("ADARG", "ADARG Unit Root Folder", 1, 1, 0, 1, 0); -- id=2 -- unit admins have write access INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (2, 2, 0, 1); - - -- Admin Folder - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Admin", "ADARG Unit Administration Folder", 2, 1, 1, 1, 0); -- id=3 - -- Admin SubFolders - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Leave", "Applications for leave", 3, 1, 1, 1, 0); -- id=4 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (7, 4, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Invoices", "Unpaid bills", 3, 1, 1, 1, 0); -- id=5 - -- finance has write access - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (9, 5, 0, 1); - - -- Proposals Folder - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Proposals", "ADARG Unit Proposals Folder", 2, 1, 2, 1, 0); -- id=6 - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Accepted", "accepted proposal", 6, 1, 1, 1, 0); -- id=7 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (7, 7, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Pending", "pending proposals", 6, 1, 1, 1, 0); -- id=8 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (7, 8, 1, 0); - - -- Publications Folder - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Publications", "ADARG Unit Publications Folder", 2, 1, 3, 1, 0); -- id=9 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Published", "published publications", 9, 1, 1, 1, 0); -- id=10 - -- editors have write - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (8, 10, 0, 1); - - -- Research Folder - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Research", "ADARG Unit Research Folder", 2, 1, 4, 1, 0); -- id=11 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Current", "current research", 11, 1, 1, 1, 0); -- id=12 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (7, 12, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Archived", "archived research", 11, 1, 1, 1, 0); -- id=13 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (7, 13, 1, 0); ---- afroaids unit folders -- [10,11,12] @@ -865,54 +816,6 @@ INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, -- unit admins have write access INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (3, 14, 0, 1); - -- Admin folder - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Admin", "AfroAIDS Unit Administration Folder", 14, 1, 1, 2, 0); -- id=15 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Leave", "Applications for leave", 15, 1, 1, 1, 0); -- id=16 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (10, 16, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Invoices", "Unpaid bills", 15, 1, 1, 1, 0); -- id=17 - -- finance has write access - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (12, 17, 0, 1); - - -- Proposals folder - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Proposals", "AfroAIDS Unit Proposals Folder", 14, 1, 2, 2, 0); -- id=18 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Accepted", "accepted proposal", 18, 1, 1, 1, 0); -- id=19 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (10, 19, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Pending", "pending proposals", 18, 1, 1, 1, 0); -- id=20 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (10, 20, 1, 0); - - -- Publications Folder - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Publications", "AfroAIDS Unit Publications Folder", 14, 1, 3, 2, 0); -- id=21 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Published", "published publications", 21, 1, 1, 1, 0); -- id=22 - -- editors have write - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (11, 22, 0, 1); - - -- Research Folder - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Research", "AfroAIDS Unit Research Folder", 14, 1, 4, 2, 0);-- id=23 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Current", "current research", 23, 1, 1, 1, 0); -- id=24 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (10, 24, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Archived", "archived research", 23, 1, 1, 1, 0); -- id=25 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (10, 25, 1, 0); - --- done ---- diabetes unit folders --[13,14,15] INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) @@ -920,52 +823,6 @@ INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, -- unit admins have write access INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (4, 26, 0, 1); - -- Admin Folder - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Admin", "Diabetes Unit Administration Folder", 26, 1, 1, 3, 0); -- id=27 - -- Admin SubFolders - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Leave", "Applications for leave", 27, 1, 1, 1, 0); -- id=28 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (13, 28, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Invoices", "Unpaid bills", 27, 1, 1, 1, 0); -- id=29 - -- finance has write access - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (15, 29, 0, 1); - - -- Proposal Folder - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Proposals", "Diabetes Unit Proposals Folder", 26, 1, 2, 3, 0); -- id=30 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Accepted", "accepted proposal", 30, 1, 1, 1, 0); -- id=31 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (13, 31, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Pending", "pending proposals", 30, 1, 1, 1, 0); -- id=32 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (13, 32, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Publications", "Diabetes Unit Publications Folder", 26, 1, 3, 3, 0); -- id=33 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Published", "published publications", 33, 1, 1, 1, 0); -- id=34 - -- editors have write - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (14, 34, 0, 1); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Research", "Diabetes Unit Research Folder", 26, 1, 4, 3, 0); -- id=35 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Current", "current research", 35, 1, 1, 1, 0); -- id=36 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (13, 36, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Archived", "archived research", 35, 1, 1, 1, 0); -- id=37 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (13, 37, 1, 0); - ---- burden of disease unit folders -- [16,17,18] INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) @@ -973,58 +830,6 @@ INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, -- unit admins have write access INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (5, 38, 0, 1); - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Admin", "Burden of Disease Unit Administration Folder", 38, 1, 1, 4, 0); -- id=39 - -- Admin SubFolders - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Leave", "Applications for leave", 39, 1, 1, 1, 0); -- id=40 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (16, 40, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Invoices", "Unpaid bills", 39, 1, 1, 1, 0); -- id=41 - -- finance has write access - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (18, 41, 0, 1); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Proposals", "Burden of Disease Unit Proposals Folder", 38, 1, 2, 4, 0); -- id=42 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Accepted", "accepted proposal", 42, 1, 1, 1, 0); -- id=43 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (16, 43, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Pending", "pending proposals", 42, 1, 1, 1, 0); -- id=44 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (16, 44, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Publications", "Burden of Disease Unit Publications Folder", 38, 1, 3, 4, 0); -- id=45 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Published", "published publications", 45, 1, 1, 1, 0); -- id=46 - -- editors have write - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (17, 46, 0, 1); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Research", "Burden of Disease Unit Research Folder", 38, 1, 4, 4, 0); -- id=47 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Current", "current research", 47, 1, 1, 1, 0); -- id=48 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (16, 48, 1, 0); - - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) - VALUES ("Archived", "archived research", 47, 1, 1, 1, 0); -- id=49 - -- spell checkers have read - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (16, 48, 1, 0); - --- add one document to each folder -INSERT INTO documents (document_type_id, name, filename, size, creator_id, modified, description, security, mime_id, - folder_id, major_version, minor_version, is_checked_out) - VALUES (1, "Test File", "test.txt", "36", 1, "Dec 27th, 2000 at 05:17 pm", "", 0, 5, - 3, 0, 1, 0); -- id = 1 --- set the category metadata value -INSERT INTO document_fields_link (document_id, document_field_id, value) VALUES (1, 1, "test"); - -- TODO: populate categories_lookup -- sitemap sections -- libgit2 0.21.4