phpScheduleIt
May 24, 2013, 02:50:18 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: How to upgrade with no down time  (Read 301 times)
stresshacker
Newbie
*

Karma: 0
Posts: 24


« on: September 09, 2012, 05:10:06 PM »

Hello Nick,
The new release 2.3 looks just great!  Once again you have managed to improve on this, a wonderful piece of software. Thank you!

I am looking forward to upgrading and your instructions are very clear. I do have a couple of questions, however, and I would greatly appreciate your recommendations as to how to proceed for best results.  The scheduler is currently being utilized daily by twenty-six users at a very busy counseling center and I would like to upgrade with minimal or no down time.

1. You indicate in the instructions that the best approach is "to backup the current files, then upload the new files to the same location."  Would you recommend renaming the current folder which contains v. 2.2 to phpScheduleIt.old, and then create a new folder phpScheduleIt to which v. 2.3 would be uploaded?   What happens to the scheduler when the current folder is renamed?  Does it just disappear until I create the new folder and upload the new version to it?

2. How does the automatic database upgrade work, exactly?  Do I have to re-enter the existing database parameters?  Is there any risk to the data?

If you could let me know your thoughts on these issues I would greatly appreciate it.  Thank you so much in advance for your help!

Mark Z.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: September 12, 2012, 07:12:38 PM »

Hi Mark,
Good questions.

Quote
1. You indicate in the instructions that the best approach is "to backup the current files, then upload the new files to the same location."  Would you recommend renaming the current folder which contains v. 2.2 to phpScheduleIt.old, and then create a new folder phpScheduleIt to which v. 2.3 would be uploaded?   What happens to the scheduler when the current folder is renamed?  Does it just disappear until I create the new folder and upload the new version to it?

The backup/new folder approach is just a recommendation for safety and zero downtime. You can overwrite your existing files if you haven't made any customizations or changes. This does make downtime possible though, since the 2.3 application will not work correctly with a 2.2 database schema. You can work around this by manually upgrading the database, though.

Quote
2. How does the automatic database upgrade work, exactly?  Do I have to re-enter the existing database parameters?  Is there any risk to the data?

There are two ways to upgrade. If you're running on your own hardware and have a database user with sufficient permissions, you can run the automatic upgrade

You can also run the manual upgrade. This would be necessary when you don't have a user who can alter tables, which is typical of hosted solutions. You can also run the manual upgrade if you want to upgrade the database prior to upgrading the application. This would facilitate zero downtime deployments.

Both upgrade approaches just applies the changes necessary to made the database work with the current version.

Hopefully that helps! Please let me know if you have any other questions.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!