Changeset 715
- Timestamp:
- 01/05/10 16:08:01 (2 years ago)
- Location:
- trunk/phpbms/install
- Files:
-
- 2 modified
-
generateuuids.php (modified) (7 diffs)
-
updatev0.98.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/install/generateuuids.php
r703 r715 195 195 ); 196 196 $this->updateFields("invoices", $invoiceArray); 197 197 198 198 $clientArray = array( 199 199 "taxareaid" =>$this->taxList, … … 288 288 289 289 $queryresult = $this->db->query($querystatement); 290 290 291 291 $initialClause = ""; 292 292 293 293 $tablestatement = " 294 294 SHOW FIELDS FROM … … 299 299 `field` = 'modifieddate' 300 300 "; 301 301 302 302 $tableresult = $this->db->query($tablestatement); 303 303 … … 305 305 while($tablerecord = $this->db->fetchArray($tableresult)) 306 306 switch($tablerecord["Field"]){ 307 307 308 308 case "modifieddate": 309 309 case "stamp": 310 310 $initialClause .= ", `".$tablerecord["Field"]."` = `".$tablerecord["Field"]."`"; 311 311 break; 312 312 313 313 default: 314 314 break; 315 315 }//end switch 316 316 317 317 while($therecord = $this->db->fetchArray($queryresult)){ 318 318 … … 323 323 if(strpos($therecord[$key],":") === false) 324 324 $updateClause .= ", `".$key."` = '".$value[$therecord[$key]]."'"; 325 325 326 326 if($updateClause){ 327 327 … … 336 336 `id` = ".$therecord["id"]." 337 337 "; 338 338 339 339 $this->db->query($updatestatement); 340 340 … … 348 348 /** 349 349 * function creatUUIDs 350 * 350 * 351 351 * Gives randomly created uuids to a table with $tabledefuuid (keeping 352 352 * the prefix in the tabledef consistent). 353 * 353 * 354 354 * @param string $tabledefuuid 355 355 */ 356 356 357 357 function createUUIDs($tabledefuuid){ 358 358 -
trunk/phpbms/install/updatev0.98.sql
r714 r715 97 97 ADD COLUMN `uuid` varchar(64) NOT NULL AFTER `id`; 98 98 --end modules ALTER-- 99 UPDATE `modules` SET `uuid`='mod:29873ee8-c12a-e3f6-9010-4cd24174ffd7' WHERE `id`='1'; 99 100 --notes ALTER-- 100 101 ALTER TABLE `notes` ENGINE=INNODB;