Upgrading from version 3

Having trouble installing serendipity?
Post Reply
fashionair
Regular
Posts: 12
Joined: Fri Nov 14, 2003 10:21 am

Upgrading from version 3

Post by fashionair »

If I'm using version 3 now and would like to upgrade, can I upgrade directly to version 6? Or do I need to install 4, then 5, then 6?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Upgrading from version 3

Post by garvinhicking »

Well, since the version 0.4 we have a working upgrader. Basically I'd suggest you the following:

- Make a backup of your files AND your database!
- Make sure, the backup works
- Store the backup somewhere safe. ;)
- Edit your serendipity_config_local.inc.php and insert the line:

Code: Select all

$serendipity['versionInstalled'] = '0.3';
in that file
- Make sure, your backup files still exist ;)
- Now extract the files from the 0.6 archive inside your directory
- Open your blog, and the installer should run many SQL files from within the 'sql' subdirectory.


If that somehow doesn't work, restore your backup and try this way:
- Edit your serendipity_config_local.inc.php and insert the line:

Code: Select all

$serendipity['versionInstalled'] = '0.6-pl3';
- Copy all the files frmo the 0.6 archive inside your directory
- Now locate the subdirectory 'SQL' and open all .sql files for the database you selected (*_mysql or *_postgresql).
- You should then search&replace for the string {PREFIX} and replace it with the name of your table prefix (like 'serendipity_'). Save the files and now copy+paste the files contents into a phpMyAdmin or SQL command line client. You need those files: db_update_0.3_0.4_mysql.sql, db_update_0.5.0_0.5.1_mysql.sql and db_update_0.5.1_0.6_mysql.sql (or _postgresql.sql).

Even though this all may sound confusing, it should work out easily if you follow the instructions. The first method should be easiest.

And if I didn't mention already: Make sure you've got a backup. :)

Good luck,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
fashionair
Regular
Posts: 12
Joined: Fri Nov 14, 2003 10:21 am

Post by fashionair »

Thanks Gavin.

I just tried to do the first method with 0.7.3 instead of 0.6 and it didn't quite work out for me.

First, I already had the version installed line like you asked to insert. I then copied in all the files and it put me in the SQL upgrade process. However, when doing the SQL upgrade all the db queries seeme to fail due to an unknown 'author_id' field.

Any suggestions?
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post by jhermanns »

how about making a fresh s9y install parallel to your old one, then rss import from the old s9y version, and then switch over to the new one?
Post Reply