Page 1 of 1

Upgrading from version 3

Posted: Tue Jul 06, 2004 9:32 am
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?

Re: Upgrading from version 3

Posted: Tue Jul 06, 2004 10:22 am
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.

Posted: Wed Sep 29, 2004 7:30 pm
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?

Posted: Thu Sep 30, 2004 3:33 pm
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?