Commit 194b0e1bc414f90de71d8ab1650c68acb3efe755
1 parent
325507ce
added is_enabled to sitemap table and updated inserts
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@639 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
17 additions
and
16 deletions
sql/tables.sql
| @@ -179,7 +179,8 @@ page CHAR(255), | @@ -179,7 +179,8 @@ page CHAR(255), | ||
| 179 | section_id INTEGER, | 179 | section_id INTEGER, |
| 180 | access_id INTEGER, | 180 | access_id INTEGER, |
| 181 | link_text CHAR(255), | 181 | link_text CHAR(255), |
| 182 | -is_default BIT | 182 | +is_default BIT, |
| 183 | +is_enabled BIT DEFAULT 1 | ||
| 183 | ); | 184 | ); |
| 184 | 185 | ||
| 185 | CREATE TABLE subscriptions ( | 186 | CREATE TABLE subscriptions ( |
| @@ -998,27 +999,27 @@ INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) | @@ -998,27 +999,27 @@ INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) | ||
| 998 | -- manage documents section | 999 | -- manage documents section |
| 999 | INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("browse", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php", 2, 2, "browse documents", 1); | 1000 | INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("browse", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php", 2, 2, "browse documents", 1); |
| 1000 | INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("viewDocument", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php", 2, 2, "", 0); | 1001 | INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("viewDocument", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php", 2, 2, "", 0); |
| 1001 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("addDocument", "/presentation/documentmanagement/addDocument.php", 2, 3, "Add A Document", 0); | ||
| 1002 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("addFolder", "/presentation/documentmanagement/addFolder.php", 2, 4, "Add A Folder", 0); | ||
| 1003 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("modifyFolderProperties", "/presentation/documentmanagement/modifyFolder.php", 2, 4, "Modify Folder Properties", 0); | ||
| 1004 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("deleteFolder", "/presentation/documentmanagement/deleteFolder.php", 2, 4, "Delete A Folder", 0); | ||
| 1005 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("moveFolder", "/presentation/documentmanagement/moveFolder.php", 2, 4, "Move A Folder", 0); | 1002 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("addDocument", "/presentation/documentmanagement/addDocument.php", 2, 3, "Add A Document", 0, 0); |
| 1003 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("addFolder", "/presentation/documentmanagement/addFolder.php", 2, 4, "Add A Folder", 0, 0); | ||
| 1004 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("modifyFolderProperties", "/presentation/documentmanagement/modifyFolder.php", 2, 4, "Modify Folder Properties", 0, 0); | ||
| 1005 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("deleteFolder", "/presentation/documentmanagement/deleteFolder.php", 2, 4, "Delete A Folder", 0, 0); | ||
| 1006 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("moveFolder", "/presentation/documentmanagement/moveFolder.php", 2, 4, "Move A Folder", 0, 0); | ||
| 1006 | -- pages for administration section | 1007 | -- pages for administration section |
| 1007 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("administration", "/admin.php", 3, 4, "Administration", 1); | ||
| 1008 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("unitAdministration", "/presentation/unitAdmin.php", 3, 4, "Unit Administration", 0); | ||
| 1009 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("systemAdministration", "/presentation/sysAdmin.php", 3, 5, "System Administration", 0); | 1008 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("administration", "/admin.php", 3, 4, "Administration", 1, 0); |
| 1009 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("unitAdministration", "/presentation/unitAdmin.php", 3, 4, "Unit Administration", 0, 0); | ||
| 1010 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("systemAdministration", "/presentation/sysAdmin.php", 3, 5, "System Administration", 0, 0); | ||
| 1010 | -- pages for advanced search section | 1011 | -- pages for advanced search section |
| 1011 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("advancedSearch", "/search.php", 4, 2, "Advanced Search", 1); | 1012 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("advancedSearch", "/search.php", 4, 2, "Advanced Search", 1, 0); |
| 1012 | -- pages for prefs section | 1013 | -- pages for prefs section |
| 1013 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("preferences", "/preferences.php", 5, 3, "Preferences", 1); | ||
| 1014 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("viewPreferences", "/preferences.php", 5, 3, "View Preferences", 0); | ||
| 1015 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("editPreferences", "/preferences.php", 5, 3, "Edit Preferences", 0); | 1014 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("preferences", "/preferences.php", 5, 3, "Preferences", 1, 0); |
| 1015 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("viewPreferences", "/preferences.php", 5, 3, "View Preferences", 0, 0); | ||
| 1016 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("editPreferences", "/preferences.php", 5, 3, "Edit Preferences", 0, 0); | ||
| 1016 | -- pages for Help section | 1017 | -- pages for Help section |
| 1017 | INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("help", "/help.php", 6, 2, "Help", 1); | 1018 | INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("help", "/help.php", 6, 2, "Help", 1); |
| 1018 | -- pages for logout section section | 1019 | -- pages for logout section section |
| 1019 | INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("logout", "/presentation/logout.php", 7, 2, "Logout", 1); | 1020 | INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("logout", "/presentation/logout.php", 7, 2, "Logout", 1); |
| 1020 | -- test pages | 1021 | -- test pages |
| 1021 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("scratchPad", "/tests/scratchPad.php", 8, 2, "scratch", 0); | ||
| 1022 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("sitemap", "/tests/session/SiteMap.php", 8, 2, "sitemap", 0); | ||
| 1023 | -INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default) VALUES ("documentBrowserTest", "/tests/documentmanagement/DocumentBrowser.php", 8, 2, "test the document browser", 0); | 1022 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("scratchPad", "/tests/scratchPad.php", 8, 2, "scratch", 0, 0); |
| 1023 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("sitemap", "/tests/session/SiteMap.php", 8, 2, "sitemap", 0, 0); | ||
| 1024 | +INSERT INTO sitemap (action, page, section_id, access_id, link_text, is_default, is_enabled) VALUES ("documentBrowserTest", "/tests/documentmanagement/DocumentBrowser.php", 8, 2, "test the document browser", 0, 0); | ||
| 1024 | 1025 |