Loading...
 
Skip to main content

History: UpgradeTiki

Preview of version: 9

Basic upgrade

Example

This example assumes:

  • The Apache username and group are www-data, i.e. Debian
  • The tiki is installed as a subdirectory of /var/www/TikiWiki
  • The version to be installed in tikiwiki-1.8.2
  • Tiki is installed in a subdirectory named tiki
  • I only used the procedure on a tiki with basic features enabled. It might not work for some features if those features happen to store or otherwise modify files within the tiki file tree.
Image
Copy to clipboard
cd /var/www/TikiWiki wget http://aleron.dl.sourceforge.net/sourceforge/tikiwiki/tikiwiki-1.8.2.tar.gz gunzip -c tikiwiki-1.8.2.tar.gz | tar xvf - chown www-data:www-data tikiwiki-1.8.2 cd tikiwiki-1.8.2 chown -R www-data:www-data * ./setup.sh www-data www-data cd .. diff tiki/db/tiki-1.8-mysql.sql tikiwiki-1.8.2/db/tiki-1.8-mysql.sql

  • Stop here if the diff produces any output. Any output different from simple comment changes, of course. Use your common sense. (avgasse) This page does not yet contain information for how to deal with database migration issues.


Image
Copy to clipboard
/etc/init.d/apache stop cd /var/www/TikiWiki mv tiki tiki.bak mv tikiwiki-1.8.2 tiki cp tiki.bak/db/local.php tiki/db/local.php cp tiki.bak/img/wiki_up/* tiki/img/wiki_up /etc/init.d/apache start

When a database upgrade is needed

When is a DB upgrade needed

Usually only upgrades between major versions (1.7 to 1.8 for example) needs a DB upgrade. It could happen that a bugfix upgrade needs a database change, but this will be mentioned in the release notes. Currently, the only bugfix upgrade requiring DB upgrade is from 1.7.3 to 1.7.4.

What to do

This is similiar to the upgrading process described earlier. After installing the replacement tiki, You will need to update your database's structure. Scripts needed to do so are locate in tiki/db/. You must run them in order, proceesing by steps. Since there is no README, the steps are provided below. All the files needed to upgrade from one version to another are provided in any Tiki distribution, even if you don't need them. This means you can perform a basic upgrade, and then run all the scripts needed.

Backup your database before attempting this upgrade. "mysqldump -u myuser mydb -p >& myfile.sql". The structure_fix script can be run only once. It basically destroys your wiki if there is an error.

Example

Assuming you have:

  • mysql running on localhost
  • wiki stored in database mydb
  • user myuser


This is the specific command order you need to *safely* upgrade your database from 1.7.x to 1.8.x:

Image
Copy to clipboard
mysql -u myuser mydb -p -f < tiki_1.7to1.8.sql mysql -u myuser mydb -p -f < structure_fix_1.7to1.8.sql mysql -u myuser mydb -p -f < comments_fix_1.7to1.8.sql

History

Information Version
Marc Laporte 10
View
Amedee Van Gasse 9
View
camus546 8
View
mstovenour 7
View
mstovenour 6
View
mstovenour 5
View
Philippe Cloutier Note about status 4
View
Philippe Cloutier 3
View
Philippe Cloutier 2
View