Migration to Version 1.0.0rc2 (Guide)

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
jhaeuss
Posts: 2
Joined: 12 Oct 2005, 12:34

Migration to Version 1.0.0rc2 (Guide)

Post by jhaeuss »

Hi,

we are using Version 0.17.5 since about 2 years. Now we decided to do an upgrade to the current version (maybe we will wait for the release of 1.0).
Is it possible to simply copy the data from the old to the new database, or is it even possible to reuse the old database. If not, are there any migration tools or possibilities?

Thanks
Woefdram
Posts: 21
Joined: 18 Jul 2005, 12:10
Location: Netherlands

Post by Woefdram »

Hi,

I don't know of any guides about upgrading, but I'll tell you how I do it. I started with 0.17.5 when I took this job, now I run 1.0.0rc1.

When an upgrade is available, I download it and extract it into the same directory as where my current version is installed (/var/www). Then I compare the default config and language files so I can "patch" my own customised files to the new version.

Then I take Mantis offline (bothn current and new) by making a mantis_offline.php page and make a complete dump of the database. Apache looks for /var/www/mantis to serve its Mantis pages from, which is a symlink to the install dir of Mantis. So with an upgrade, all I do is make the symlink point to the new release. The new release is offline as well, so no users can start using it before I've run the update tools. Once that has been done, it's time to remove the mantis_offline.php and you're done. This can usually be so quickly that users won't even notice anything.

Needless to say you should first try this in a test environment.

Good luck,

Hans
jhaeuss
Posts: 2
Joined: 12 Oct 2005, 12:34

Post by jhaeuss »

@Woefdram:
So there has never been a need for altering the database (table structures) or update any data?
Woefdram
Posts: 21
Joined: 18 Jul 2005, 12:10
Location: Netherlands

Post by Woefdram »

I think the database has changed several times, but I've never had to touch it myself. Everything that needs to be done, is done by the update scripts. Just goto the /admin page after you installed the new version and run the scripts that are available. Don't forget to disable the /admin page once you go live :)
Woefdram
Posts: 21
Joined: 18 Jul 2005, 12:10
Location: Netherlands

Post by Woefdram »

If you're going for 1.0.0rc2, maybe you might want to have a look at bug #6338
Post Reply