Commit c690bdcee513023fed13d8a088ad2f05789c2247

Authored by michael
1 parent accee453

removed test folders


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@949 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 0 additions and 195 deletions
sql/tables.sql
@@ -808,55 +808,6 @@ INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, @@ -808,55 +808,6 @@ INSERT INTO folders (name, description, parent_id, creator_id, document_type_id,
808 VALUES ("ADARG", "ADARG Unit Root Folder", 1, 1, 0, 1, 0); -- id=2 808 VALUES ("ADARG", "ADARG Unit Root Folder", 1, 1, 0, 1, 0); -- id=2
809 -- unit admins have write access 809 -- unit admins have write access
810 INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (2, 2, 0, 1); 810 INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (2, 2, 0, 1);
811 -  
812 - -- Admin Folder  
813 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
814 - VALUES ("Admin", "ADARG Unit Administration Folder", 2, 1, 1, 1, 0); -- id=3  
815 - -- Admin SubFolders  
816 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
817 - VALUES ("Leave", "Applications for leave", 3, 1, 1, 1, 0); -- id=4  
818 - -- spell checkers have read  
819 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (7, 4, 1, 0);  
820 -  
821 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
822 - VALUES ("Invoices", "Unpaid bills", 3, 1, 1, 1, 0); -- id=5  
823 - -- finance has write access  
824 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (9, 5, 0, 1);  
825 -  
826 - -- Proposals Folder  
827 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
828 - VALUES ("Proposals", "ADARG Unit Proposals Folder", 2, 1, 2, 1, 0); -- id=6  
829 -  
830 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
831 - VALUES ("Accepted", "accepted proposal", 6, 1, 1, 1, 0); -- id=7  
832 - -- spell checkers have read  
833 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (7, 7, 1, 0);  
834 -  
835 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
836 - VALUES ("Pending", "pending proposals", 6, 1, 1, 1, 0); -- id=8  
837 - -- spell checkers have read  
838 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (7, 8, 1, 0);  
839 -  
840 - -- Publications Folder  
841 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
842 - VALUES ("Publications", "ADARG Unit Publications Folder", 2, 1, 3, 1, 0); -- id=9  
843 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
844 - VALUES ("Published", "published publications", 9, 1, 1, 1, 0); -- id=10  
845 - -- editors have write  
846 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (8, 10, 0, 1);  
847 -  
848 - -- Research Folder  
849 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
850 - VALUES ("Research", "ADARG Unit Research Folder", 2, 1, 4, 1, 0); -- id=11  
851 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
852 - VALUES ("Current", "current research", 11, 1, 1, 1, 0); -- id=12  
853 - -- spell checkers have read  
854 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (7, 12, 1, 0);  
855 -  
856 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
857 - VALUES ("Archived", "archived research", 11, 1, 1, 1, 0); -- id=13  
858 - -- spell checkers have read  
859 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (7, 13, 1, 0);  
860 811
861 ---- afroaids unit folders 812 ---- afroaids unit folders
862 -- [10,11,12] 813 -- [10,11,12]
@@ -865,54 +816,6 @@ INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, @@ -865,54 +816,6 @@ INSERT INTO folders (name, description, parent_id, creator_id, document_type_id,
865 -- unit admins have write access 816 -- unit admins have write access
866 INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (3, 14, 0, 1); 817 INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (3, 14, 0, 1);
867 818
868 - -- Admin folder  
869 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
870 - VALUES ("Admin", "AfroAIDS Unit Administration Folder", 14, 1, 1, 2, 0); -- id=15  
871 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
872 - VALUES ("Leave", "Applications for leave", 15, 1, 1, 1, 0); -- id=16  
873 - -- spell checkers have read  
874 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (10, 16, 1, 0);  
875 -  
876 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
877 - VALUES ("Invoices", "Unpaid bills", 15, 1, 1, 1, 0); -- id=17  
878 - -- finance has write access  
879 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (12, 17, 0, 1);  
880 -  
881 - -- Proposals folder  
882 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
883 - VALUES ("Proposals", "AfroAIDS Unit Proposals Folder", 14, 1, 2, 2, 0); -- id=18  
884 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
885 - VALUES ("Accepted", "accepted proposal", 18, 1, 1, 1, 0); -- id=19  
886 - -- spell checkers have read  
887 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (10, 19, 1, 0);  
888 -  
889 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
890 - VALUES ("Pending", "pending proposals", 18, 1, 1, 1, 0); -- id=20  
891 - -- spell checkers have read  
892 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (10, 20, 1, 0);  
893 -  
894 - -- Publications Folder  
895 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
896 - VALUES ("Publications", "AfroAIDS Unit Publications Folder", 14, 1, 3, 2, 0); -- id=21  
897 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
898 - VALUES ("Published", "published publications", 21, 1, 1, 1, 0); -- id=22  
899 - -- editors have write  
900 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (11, 22, 0, 1);  
901 -  
902 - -- Research Folder  
903 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
904 - VALUES ("Research", "AfroAIDS Unit Research Folder", 14, 1, 4, 2, 0);-- id=23  
905 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
906 - VALUES ("Current", "current research", 23, 1, 1, 1, 0); -- id=24  
907 - -- spell checkers have read  
908 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (10, 24, 1, 0);  
909 -  
910 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
911 - VALUES ("Archived", "archived research", 23, 1, 1, 1, 0); -- id=25  
912 - -- spell checkers have read  
913 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (10, 25, 1, 0);  
914 -  
915 --- done  
916 ---- diabetes unit folders 819 ---- diabetes unit folders
917 --[13,14,15] 820 --[13,14,15]
918 INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) 821 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, @@ -920,52 +823,6 @@ INSERT INTO folders (name, description, parent_id, creator_id, document_type_id,
920 -- unit admins have write access 823 -- unit admins have write access
921 INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (4, 26, 0, 1); 824 INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (4, 26, 0, 1);
922 825
923 - -- Admin Folder  
924 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
925 - VALUES ("Admin", "Diabetes Unit Administration Folder", 26, 1, 1, 3, 0); -- id=27  
926 - -- Admin SubFolders  
927 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
928 - VALUES ("Leave", "Applications for leave", 27, 1, 1, 1, 0); -- id=28  
929 - -- spell checkers have read  
930 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (13, 28, 1, 0);  
931 -  
932 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
933 - VALUES ("Invoices", "Unpaid bills", 27, 1, 1, 1, 0); -- id=29  
934 - -- finance has write access  
935 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (15, 29, 0, 1);  
936 -  
937 - -- Proposal Folder  
938 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
939 - VALUES ("Proposals", "Diabetes Unit Proposals Folder", 26, 1, 2, 3, 0); -- id=30  
940 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
941 - VALUES ("Accepted", "accepted proposal", 30, 1, 1, 1, 0); -- id=31  
942 - -- spell checkers have read  
943 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (13, 31, 1, 0);  
944 -  
945 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
946 - VALUES ("Pending", "pending proposals", 30, 1, 1, 1, 0); -- id=32  
947 - -- spell checkers have read  
948 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (13, 32, 1, 0);  
949 -  
950 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
951 - VALUES ("Publications", "Diabetes Unit Publications Folder", 26, 1, 3, 3, 0); -- id=33  
952 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
953 - VALUES ("Published", "published publications", 33, 1, 1, 1, 0); -- id=34  
954 - -- editors have write  
955 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (14, 34, 0, 1);  
956 -  
957 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
958 - VALUES ("Research", "Diabetes Unit Research Folder", 26, 1, 4, 3, 0); -- id=35  
959 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
960 - VALUES ("Current", "current research", 35, 1, 1, 1, 0); -- id=36  
961 - -- spell checkers have read  
962 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (13, 36, 1, 0);  
963 -  
964 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
965 - VALUES ("Archived", "archived research", 35, 1, 1, 1, 0); -- id=37  
966 - -- spell checkers have read  
967 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (13, 37, 1, 0);  
968 -  
969 ---- burden of disease unit folders 826 ---- burden of disease unit folders
970 -- [16,17,18] 827 -- [16,17,18]
971 INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public) 828 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, @@ -973,58 +830,6 @@ INSERT INTO folders (name, description, parent_id, creator_id, document_type_id,
973 -- unit admins have write access 830 -- unit admins have write access
974 INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (5, 38, 0, 1); 831 INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (5, 38, 0, 1);
975 832
976 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
977 - VALUES ("Admin", "Burden of Disease Unit Administration Folder", 38, 1, 1, 4, 0); -- id=39  
978 - -- Admin SubFolders  
979 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
980 - VALUES ("Leave", "Applications for leave", 39, 1, 1, 1, 0); -- id=40  
981 - -- spell checkers have read  
982 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (16, 40, 1, 0);  
983 -  
984 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
985 - VALUES ("Invoices", "Unpaid bills", 39, 1, 1, 1, 0); -- id=41  
986 - -- finance has write access  
987 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (18, 41, 0, 1);  
988 -  
989 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
990 - VALUES ("Proposals", "Burden of Disease Unit Proposals Folder", 38, 1, 2, 4, 0); -- id=42  
991 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
992 - VALUES ("Accepted", "accepted proposal", 42, 1, 1, 1, 0); -- id=43  
993 - -- spell checkers have read  
994 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (16, 43, 1, 0);  
995 -  
996 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
997 - VALUES ("Pending", "pending proposals", 42, 1, 1, 1, 0); -- id=44  
998 - -- spell checkers have read  
999 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (16, 44, 1, 0);  
1000 -  
1001 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
1002 - VALUES ("Publications", "Burden of Disease Unit Publications Folder", 38, 1, 3, 4, 0); -- id=45  
1003 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
1004 - VALUES ("Published", "published publications", 45, 1, 1, 1, 0); -- id=46  
1005 - -- editors have write  
1006 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (17, 46, 0, 1);  
1007 -  
1008 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
1009 - VALUES ("Research", "Burden of Disease Unit Research Folder", 38, 1, 4, 4, 0); -- id=47  
1010 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
1011 - VALUES ("Current", "current research", 47, 1, 1, 1, 0); -- id=48  
1012 - -- spell checkers have read  
1013 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (16, 48, 1, 0);  
1014 -  
1015 - INSERT INTO folders (name, description, parent_id, creator_id, document_type_id, unit_id, is_public)  
1016 - VALUES ("Archived", "archived research", 47, 1, 1, 1, 0); -- id=49  
1017 - -- spell checkers have read  
1018 - INSERT INTO groups_folders_link (group_id, folder_id, can_read, can_write) VALUES (16, 48, 1, 0);  
1019 -  
1020 -INSERT INTO documents (document_type_id, name, filename, size, creator_id, modified, description, security, mime_id,  
1021 - folder_id, major_version, minor_version, is_checked_out)  
1022 - VALUES (1, "Test File", "test.txt", "36", 1, "Dec 27th, 2000 at 05:17 pm", "", 0, 5,  
1023 - 3, 0, 1, 0); -- id = 1  
1024 --- set the category metadata value  
1025 -INSERT INTO document_fields_link (document_id, document_field_id, value) VALUES (1, 1, "test");  
1026 -  
1027 -- TODO: populate categories_lookup 833 -- TODO: populate categories_lookup
1028 834
1029 -- sitemap sections 835 -- sitemap sections