Changeset 569 for trunk/phpbms/install
- Timestamp:
- 06/03/09 19:02:18 (3 years ago)
- Location:
- trunk/phpbms/install
- Files:
-
- 2 modified
-
generateuuids.php (modified) (3 diffs)
-
updatev0.98.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/install/generateuuids.php
r568 r569 88 88 //$this->createUUIDs("tbld:7e75af48-6f70-d157-f440-69a8e7f59d38"); //Tabs 89 89 //$this->createUUIDs("tbld:29925e0a-c825-0067-8882-db4b57866a96"); //Smart Searches 90 //$this->createUUIDs("tbld:83187e3d-101e-a8a5-037f-31e9800fed2d"); //Menu 90 91 91 92 //generate lists used elsewhere 93 $this->moduleList= $this->generateUUIDList("modules"); 94 95 $this->tabledefList = $this->generateUUIDList("tabledefs"); 96 97 //BMS updates 98 if(in_array("mod:0aa9cca0-7388-0eae-81b9-9935f9d127cc", $this->moduleList)){ 99 100 //$this->createUUIDs("tbld:6d290174-8b73-e199-fe6c-bcf3d4b61083"); //clients 101 102 }//endif 103 104 105 $this->userList = $this->generateUUIDList("users"); 106 $this->userList[0] =""; 107 92 108 $this->roleList = $this->generateUUIDList("roles"); 93 109 $this->roleList[-100] = "Admin"; 94 110 $this->roleList[0] = ""; 95 111 96 //$this->userList = $this->generateUUIDList("users"); 97 //$this->userList[0] =""; 98 // 99 //$this->tabledefList = $this->generateUUIDList("tabledefs"); 100 // 101 //$this->moduleList= $this->generateUUIDList("modules"); 112 $menuList = $this->generateUUIDList("menu"); 113 $menuList[0] = ""; 114 115 $notesList = $this->generateUUIDList("notes"); 102 116 103 117 //function calls for all we have to do go here … … 113 127 //$this->updateFields("widgets", array("roleid"=>$this->roleList, "moduleid"=>$this->moduleList)); 114 128 //$this->updateFields("usersearches", array("tabledefid"=>$this->tabledefList, "userid"=>$this->userList, "roleid"=>$this->roleList)); 115 //$this->updateFields("reports", array("roleid"=>$this->roleList, "tabledefid"=>$this->tabledefList));116 129 //$this->updateFields("relationships", array("fromtableid"=>$this->tabledefList, "totableid"=>$this->tabledefList)); 117 $this->updateFields("tabs", array("roleid"=>$this->roleList)); 118 130 //$this->updateFields("menu", array("parentid"=>$menuList, "roleid"=>$this->roleList)); 131 //$this->updateFields("smartsearches", array("tabledefid"=>$this->tabledefList, "moduleid"=>$this->moduleList)); 132 //$this->updateFields("tabs", array("roleid"=>$this->roleList)); 133 $this->updateFields("notes", array("assignedtoid"=>$this->userList, "assignedbyid"=>$this->userList, "attachedtabledefid", "parentid"=>$notesList)); 134 135 //custom stuff 119 136 //$this->updateMenuLinks(); 137 138 //BMS updates 139 if(in_array("mod:0aa9cca0-7388-0eae-81b9-9935f9d127cc", $this->moduleList)){ 140 141 }//endif 142 143 144 //Updates that need to be done after all the other updates 145 // Notes attachedtoid 146 // attachments 147 // addresstorecord 148 // AR?? 120 149 121 150 // ====== … … 193 222 "; 194 223 195 //echo $updatestatement."<br />";196 $this->db->query($updatestatement);224 echo $updatestatement."<br />"; 225 // $this->db->query($updatestatement); 197 226 198 227 }//endif -
trunk/phpbms/install/updatev0.98.sql
r568 r569 234 234 --menu INSERT-- 235 235 DELETE FROM `menu`; 236 INSERT INTO `menu` (`uuid`, `name`, `link`, `parentid`, `displayorder`, `createdby`, `modifiedby`, `creationdate`, `modifieddate`, `roleid`) VALUES ('menu:1e23c59e-c429-fec5-cc94-99b53c4fc6b0', 'Tools', '', ' 0', '3', 1, 1, NOW(), NOW(), '');236 INSERT INTO `menu` (`uuid`, `name`, `link`, `parentid`, `displayorder`, `createdby`, `modifiedby`, `creationdate`, `modifieddate`, `roleid`) VALUES ('menu:1e23c59e-c429-fec5-cc94-99b53c4fc6b0', 'Tools', '', '', '3', 1, 1, NOW(), NOW(), ''); 237 237 INSERT INTO `menu` (`uuid`, `name`, `link`, `parentid`, `displayorder`, `createdby`, `modifiedby`, `creationdate`, `modifieddate`, `roleid`) VALUES ('menu:d9e0eaa6-26b3-fcfb-f1b5-ee0eef8a857a', 'Notes', 'search.php?id=12', 'menu:1e23c59e-c429-fec5-cc94-99b53c4fc6b0', '30', 1, 1, NOW(), NOW(), ''); 238 238 INSERT INTO `menu` (`uuid`, `name`, `link`, `parentid`, `displayorder`, `createdby`, `modifiedby`, `creationdate`, `modifieddate`, `roleid`) VALUES ('menu:03e984b6-d7ac-def2-a4f5-662003e94bfd', 'Tasks', 'search.php?id=23', 'menu:1e23c59e-c429-fec5-cc94-99b53c4fc6b0', '40', 1, 1, NOW(), NOW(), ''); 239 239 INSERT INTO `menu` (`uuid`, `name`, `link`, `parentid`, `displayorder`, `createdby`, `modifiedby`, `creationdate`, `modifieddate`, `roleid`) VALUES ('menu:c4871074-90e9-c9bb-bcf9-b69ca0c30e8b', 'Events', 'search.php?id=24', 'menu:1e23c59e-c429-fec5-cc94-99b53c4fc6b0', '50', 1, 1, NOW(), NOW(), ''); 240 240 INSERT INTO `menu` (`uuid`, `name`, `link`, `parentid`, `displayorder`, `createdby`, `modifiedby`, `creationdate`, `modifieddate`, `roleid`) VALUES ('menu:2bcd88e6-703f-128c-7f18-1aad44fb46fb', 'Snapshot', 'modules/base/snapshot.php', 'menu:1e23c59e-c429-fec5-cc94-99b53c4fc6b0', '10', 1, 1, NOW(), NOW(), ''); 241 INSERT INTO `menu` (`uuid`, `name`, `link`, `parentid`, `displayorder`, `createdby`, `modifiedby`, `creationdate`, `modifieddate`, `roleid`) VALUES ('menu:bbc91ea7-d7e4-33b7-503e-5eb1b928f28b', 'System', '', ' 0', '10', 1, 1, NOW(), NOW(), 'Admin');241 INSERT INTO `menu` (`uuid`, `name`, `link`, `parentid`, `displayorder`, `createdby`, `modifiedby`, `creationdate`, `modifieddate`, `roleid`) VALUES ('menu:bbc91ea7-d7e4-33b7-503e-5eb1b928f28b', 'System', '', '', '10', 1, 1, NOW(), NOW(), 'Admin'); 242 242 INSERT INTO `menu` (`uuid`, `name`, `link`, `parentid`, `displayorder`, `createdby`, `modifiedby`, `creationdate`, `modifieddate`, `roleid`) VALUES ('menu:e44cf976-658a-50d7-4a8f-b575713e3964', 'Configuration', 'modules/base/adminsettings.php', 'menu:bbc91ea7-d7e4-33b7-503e-5eb1b928f28b', '10', 1, 1, NOW(), NOW(), 'Admin'); 243 243 INSERT INTO `menu` (`uuid`, `name`, `link`, `parentid`, `displayorder`, `createdby`, `modifiedby`, `creationdate`, `modifieddate`, `roleid`) VALUES ('menu:cf16add3-b02a-bd9b-b3c7-3fe9d0d2e0ba', 'Users', 'search.php?id=9', 'menu:f07d910f-f56d-3d24-e74f-7a3b36b2d3c8', '40', 1, 1, NOW(), NOW(), 'Admin');