Difference between revisions of "Update"
Krischanlp (talk | contribs) |
|||
Line 1: | Line 1: | ||
− | The | + | First you need to figure out what has changed in the config.php file. |
+ | |||
+ | A detailed description of the config.php is shown at the [[Installation]] guide. | ||
+ | |||
+ | |||
+ | |||
+ | === Update to the latest version 4.0 from a 3.* installation === (With db changes) (Such as 3.52 to 4.0) | ||
+ | |||
+ | After completing the following checklist, you should have no problems running the latest version. | ||
+ | |||
+ | # Download the latest version | ||
+ | # Modify config.php and attributes.php | ||
+ | # Upload new files and overwrite old files | ||
+ | # Run update.php | ||
+ | # modify everything until the update process can be started (the update.php will tell you which checks failed) | ||
+ | # Select your current version from which the tool should be updated to the latest version. If your version is not listed, you do not need to run that file! | ||
+ | # After a successful update you need to delete the update.php and install.php files. | ||
+ | # After updating from any version below 4.0 to the latest version, delete your old tables. They are not needed any more. | ||
+ | |||
+ | == Update a version with no DB changes (Such as 4.00 to 4.01) | ||
+ | #copy files over | ||
+ | #delete update.php/install.php in the program's root directory | ||
+ | # Edit config/attributes as needed | ||
+ | |||
+ | That's all you need to do for intermittent (usually just bug fixes)updates. | ||
+ | |||
+ | === prerequisites to upgrade to version 4.0 === | ||
+ | |||
+ | # Make a backup of all needed notices, notices will '''not''' be imported to the new version! | ||
+ | # Rename the alliances at allyhistory to its corresponding names. (If the allyname is 'main' or 'wing' the update process does not know the real allyname!) Otherwise the alliance history won't be imported to the new version. You would only be able to see the player history, but not the history of your alliance. | ||
+ | # Do not interrupt the update process, it will take a while! | ||
+ | # After the update you will not see "last update" at the galaxyview or the database status. This is the normal behaviour! You can update the system again and everything will be updated as usual. The "last update" time is not imported to 4.0. | ||
+ | # If you leave the variables $allyhistory and $playerhistory blank, you won't have the statistics. But this will save some space at your database. See [[Installation#config.php]] for details. | ||
+ | |||
+ | |||
+ | === updates from 3.x to version 4.0 === | ||
+ | |||
+ | You have to adjust the config.php and remove the /* and */ on line 28 and39. After that you must fill in the old database table names (you may copy them from your old config.php). | ||
+ | |||
+ | After you have done that and entered the new table names in the variables of line 13-22 you can start the update.php. | ||
+ | |||
+ | After a successful update you can delete the old tables and the variable names at config.php as well. (Line 29-38) |
Revision as of 18:00, 15 September 2007
First you need to figure out what has changed in the config.php file.
A detailed description of the config.php is shown at the Installation guide.
=== Update to the latest version 4.0 from a 3.* installation === (With db changes) (Such as 3.52 to 4.0)
After completing the following checklist, you should have no problems running the latest version.
- Download the latest version
- Modify config.php and attributes.php
- Upload new files and overwrite old files
- Run update.php
- modify everything until the update process can be started (the update.php will tell you which checks failed)
- Select your current version from which the tool should be updated to the latest version. If your version is not listed, you do not need to run that file!
- After a successful update you need to delete the update.php and install.php files.
- After updating from any version below 4.0 to the latest version, delete your old tables. They are not needed any more.
== Update a version with no DB changes (Such as 4.00 to 4.01)
- copy files over
- delete update.php/install.php in the program's root directory
- Edit config/attributes as needed
That's all you need to do for intermittent (usually just bug fixes)updates.
prerequisites to upgrade to version 4.0
- Make a backup of all needed notices, notices will not be imported to the new version!
- Rename the alliances at allyhistory to its corresponding names. (If the allyname is 'main' or 'wing' the update process does not know the real allyname!) Otherwise the alliance history won't be imported to the new version. You would only be able to see the player history, but not the history of your alliance.
- Do not interrupt the update process, it will take a while!
- After the update you will not see "last update" at the galaxyview or the database status. This is the normal behaviour! You can update the system again and everything will be updated as usual. The "last update" time is not imported to 4.0.
- If you leave the variables $allyhistory and $playerhistory blank, you won't have the statistics. But this will save some space at your database. See Installation#config.php for details.
updates from 3.x to version 4.0
You have to adjust the config.php and remove the /* and */ on line 28 and39. After that you must fill in the old database table names (you may copy them from your old config.php).
After you have done that and entered the new table names in the variables of line 13-22 you can start the update.php.
After a successful update you can delete the old tables and the variable names at config.php as well. (Line 29-38)