Changeset 1199
- 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
| r1198 |
r1199 |
|
| 2 | 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 3 | 3 | |
|---|
| | 4 | 2008-06-04 Jochen Manz |
|---|
| | 5 | - GUI: |
|---|
| | 6 | * Fixed the database update functionality |
|---|
| | 7 | |
|---|
| 4 | 8 | 2008-06-03 Benedikt Heintel |
|---|
| 5 | 9 | - TOOLS: |
|---|
| … | … | |
| 24 | 28 | * Fixed #1324: (freebsd) fix freebsd awstats and cronjob |
|---|
| 25 | 29 | |
|---|
| 26 | | 2008-05-29 Jochen Manz |
|---|
| | 30 | 2008-06-01 Jochen Manz |
|---|
| 27 | 31 | - GUI: |
|---|
| 28 | 32 | * Fixed #1323: some better web accessability - (Part 2); removed doubled javascript code |
|---|
| r1175 |
r1199 |
|
| 91 | 91 | $functionName = returnFunctionName($newRevision); |
|---|
| 92 | 92 | |
|---|
| 93 | | // Create a empty array |
|---|
| 94 | | $queryArray = array(); |
|---|
| | 93 | // Create some empty arrays |
|---|
| | 94 | $tmpArray = array(); |
|---|
| | 95 | $queryArray = array(); |
|---|
| 95 | 96 | |
|---|
| 96 | 97 | // 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 |
|---|
| 100 | 106 | $queryArray[] = "UPDATE `config` SET `value` = '$newRevision' WHERE `name` = 'DATABASE_REVISION'"; |
|---|
| 101 | 107 | |
|---|
| … | … | |
| 123 | 129 | /* |
|---|
| 124 | 130 | * 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. |
|---|
| 125 | 132 | * Don't insert an update twice! |
|---|
| 126 | 133 | */ |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>