Changeset 698 for trunk/phpbms/modules
- Timestamp:
- 12/31/09 16:28:12 (2 years ago)
- Location:
- trunk/phpbms/modules/bms
- Files:
-
- 3 modified
-
include/aritems.php (modified) (1 diff)
-
install/update.php (modified) (1 diff)
-
install/updatev0.98.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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--