Changeset 1199

Show
Ignore:
Timestamp:
06/04/08 19:56:20 (4 months ago)
Author:
zothos
Message:

Fixed the database update functionality

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1198 r1199  
    22~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    33 
     42008-06-04 Jochen Manz 
     5        - GUI: 
     6                * Fixed the database update functionality 
     7 
    482008-06-03 Benedikt Heintel 
    59        - TOOLS: 
     
    2428                * Fixed #1324: (freebsd) fix freebsd awstats and cronjob 
    2529 
    26 2008-05-29 Jochen Manz 
     302008-06-01 Jochen Manz 
    2731        - GUI: 
    2832                * Fixed #1323: some better web accessability - (Part 2); removed doubled javascript code 
  • trunk/gui/include/database-update-functions.php

    r1175 r1199  
    9191                $functionName   = returnFunctionName($newRevision); 
    9292 
    93                 // Create a empty array  
    94                 $queryArray     = array(); 
     93                // Create some empty arrays 
     94                $tmpArray               = array(); 
     95                $queryArray             = array(); 
    9596 
    9697                // Pull the query from the update function 
    97                 $queryArray[]   = $functionName(); 
    98  
    99                 // Query to set the new Database Revision 
     98                $tmpArray               = $functionName(); 
     99 
     100                // Put each query into the queryArray 
     101                foreach($tmpArray as $oneEntry) { 
     102                        $queryArray[] = $oneEntry; 
     103                } 
     104                 
     105                // Add the query to set the new Database Revision 
    100106                $queryArray[]   = "UPDATE `config` SET `value` = '$newRevision' WHERE `name` = 'DATABASE_REVISION'"; 
    101107 
     
    123129/* 
    124130 * Insert the update functions below this entry please. The revision has to be ascending and unique. 
     131 * Each databaseUpdate function has to return a array. Even if the array contains only one entry. 
    125132 * Don't insert an update twice! 
    126133 */