View Single Post
  #28  
Old 05-03-2013, 06:29 AM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: X-Cart 4.5.6 upcoming changes (UPDATE: the next version will be 4.6.0, but not 4.5.6)

Quote:
Originally Posted by xim
We also do not really like "only database upgrade". Therefore we have been working on the tools to give upgrade patches between branches. Every release, we improve our processes (on the previous we release new version and upgrade patches at the same time). Hope the new release will also improve developers experience.
Dear Maxim, This has been said very well by others but I just want to emphasize how important it is to be able to easily and smoothly upgrade the database only. Our live store is on 4.4.5 and we're developing 4.5.5 and almost ready to go live but now we have 4.6.0 coming out. We will immediately start work on 4.6.0.

So lets say that by the time we are ready to go live on 4.6.x that you are now on version 4.6.1 and store in operation is still at 4.4.5. The best option for both x-cart and us as users is to build in a database upgrader right into the x-cart admin.

So if 4.6.1 had this database upgrader built in we would do the following

1. Download 4.4.5 --> 4.6.0 Database Upgrade
2. Download 4.6.0 --> 4.6.1 Database Upgrade
3. Upload both 4.6.0 & 4.6.1 Database Upgrades to 4.6.1 folder
4. In Admin select Tools/Upgrade "Copy" of Live Database to Current Version
5. Upgrade Mod would see Current Version files as 4.6.1 and would see both the 4.4.5 --> 4.6.0 and the 4.6.0 --> 4.6.1 upgrade scripts.
6. Upgrade Mod would ask for the 4.4.5 "Copy" database information
7. Upgrade Mod would then upgrade 4.4.5 copy --> 4.6.0 --> 4.6.1
8. Upgrade Mod would give option to change config.php to the new database

Now we can test the dev store using a current database and once testing is complete and we are ready to go live we make a new 4.4.5 copy and go through the above STARTING AT STEP 4. We should not need to do steps 1-3 again.

If we were still developing and 4.6.2 came out and we upgraded the dev store to 4.6.2 then we would just download and add the 4.6.0 --> 4.6.2 database upgrade files and the x-cart Upgrade Mod would ignore the 4.6.0 --> 4.6.1 database upgrade and instead do the 4.6.0 --> 4.6.2

We upgrade our database from the live version to our current test version about 3 times before going live so being able to easily repeat would be wonderful.

Thank you!
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote