Changeset 698 for trunk/phpbms
- Timestamp:
- 12/31/09 16:28:12 (2 years ago)
- Location:
- trunk/phpbms
- Files:
-
- 4 modified
-
install/generateuuids.php (modified) (6 diffs)
-
modules/bms/include/aritems.php (modified) (1 diff)
-
modules/bms/install/update.php (modified) (1 diff)
-
modules/bms/install/updatev0.98.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/install/generateuuids.php
r659 r698 51 51 var $tabledefList; 52 52 var $moduleList; 53 var $receiptList; 54 var $invoiceList; 53 55 54 56 … … 116 118 117 119 $this->aritemList = $this->generateUUIDList("aritems"); 118 $this->rec ieptList = $this->generateUUIDList("reciepts");120 $this->receiptList = $this->generateUUIDList("receipts"); 119 121 $this->productsList = $this->generateUUIDList("products"); 120 122 $this->addressList = $this->generateUUIDList("addresses"); … … 211 213 $this->updateFields("aritems", array("clientid"=>$this->clientList)); 212 214 $this->updateFields("prerequisites", array("parentid"=>$this->productList, "childid"=>$this->productList)); 213 $this->update Aritems("clientemailprojects", array("userid"=>$this->userList));215 $this->updateFields("clientemailprojects", array("userid"=>$this->userList)); 214 216 215 217 //we would have to run this if their were addresses associated with other records … … 459 461 460 462 case "credit": 461 462 463 $oldRelatedid = $therecord["relatedid"]; 463 464 $updatestatement = " … … 465 466 `aritems` 466 467 SET 467 `relatedid`='".$this->rec ieptList[$oldRelatedid]."'468 `relatedid`='".$this->receiptList[$oldRelatedid]."' 468 469 WHERE 469 470 `relatedid` = '".$oldRelatedid."' … … 482 483 `aritems` 483 484 SET 484 `relatedid`='".$this-> recieptList[$oldRelatedid]."'485 `relatedid`='".$this->invoiceList[$oldRelatedid]."' 485 486 WHERE 486 487 `relatedid` = '".$oldRelatedid."' -
trunk/phpbms/modules/bms/include/aritems.php
r610 r698 121 121 if($this->aritem["type"] == "deposit") 122 122 $querystatement.=" 123 AND receipts.uuid != ".mysql_real_escape_string($this->aritem["relatedid"]);123 AND receipts.uuid != '".mysql_real_escape_string($this->aritem["relatedid"])."'"; 124 124 125 125 $querystatement.= -
trunk/phpbms/modules/bms/install/update.php
r547 r698 447 447 }//end function v098UpdatePostingSession 448 448 449 /**450 * function v098UpdateProducts451 * Updates the categoryid field from the category's id to uuid.452 */453 454 function v098UpdateProducts() {455 456 $querystatement = "457 SELECT458 `id`,459 `uuid`460 FROM461 `productcategories`462 ";463 464 $queryresult = $this->db->query($querystatement);465 466 while($therecord = $this->db->fetchArray($queryresult)){467 468 $id = $therecord["id"];469 $uuid = $therecord["uuid"];470 471 $updatestatement = "472 UPDATE473 `products`474 SET475 `categoryid`='".$uuid."'476 WHERE477 `categoryid`='".$id."'478 ";479 480 $this->db->query($updatestatement);481 482 }//end while483 484 }//end method --v098UpdateProducts00485 486 449 }//end class updateBMS 487 450 -
trunk/phpbms/modules/bms/install/updatev0.98.sql
r695 r698 750 750 --end tablegroupings UPDATE-- 751 751 --tableoptions DELETE-- 752 DELETE FROM `tableoptions WHERE `name`='massEmail';752 DELETE FROM `tableoptions` WHERE `name`='massEmail'; 753 753 --end tableoptions DELETe 754 754 --tableoptions INSERT--