Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / Database upgrade - will this wipe added tables from mods

Database upgrade - will this wipe added tables from mods

Locked

Views: 2,104

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
4 Jul 2010, 5:56 PM
#1
patf avatar

patf

Zen Follower

Join Date:
May 2008
Posts:
200
Plugin Contributions:
0

Database upgrade - will this wipe added tables from mods

We're getting ready to update our site to 1.3.9d from 1.3.8a.

We have decided the best way to do this for us is to rebuild from scratch - main reason being when we first started out a number of modifications were made to core files when installing add ons / customising the site. We therefore want to get a fresh install which will stand up to future upgrades etc.

We created a demo folder and ran the install script - all grand. We then backed up the database from our live site and threw the backup onto the new demo folder (so we can test and play with the demo site with a view to replicating our current one) This immediately propmpted a database upgrade which we have done.

My question is - what exactly does this upgrade do with additional tables created by add ons. Ultimately after testing we will be looking to take the then current 1.3.8a database from the existing site and slot it back into the 1.3.9d - which will prompt for a database upgrade again. Will this upgrade wipe any add ons / amendments to the database which we create in the mean time ?

4 Jul 2010, 7:05 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Database upgrade - will this wipe added tables from mods

It shouldn't affect any database changes made by mods unless there's an out-and-out conflict with them. And given how minimal the database changes were for 1.3.9, that's very unlikely.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Jul 2010, 6:03 PM
#3
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Database upgrade - will this wipe added tables from mods

i'm doing the same thing here with my site.
0
demo site running off 1.39d test.gorillagear.ca -upgrade from 1.38a database (2weeks ago) with new mods and some mod upgrades that required database changes
live site running off 1.38a www.gorillagear.ca - old site but for the last few weeks keeps getting new orders and customers.

now i want to added the new info from the live and put it into the demo site before switching? how should i do this

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

5 Jul 2010, 6:18 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Database upgrade - will this wipe added tables from mods

MB1:

i'm doing the same thing here with my site.
0
demo site running off 1.39d test.gorillagear.ca -upgrade from 1.38a database (2weeks ago) with new mods and some mod upgrades that required database changes
live site running off 1.38a www.gorillagear.ca - old site but for the last few weeks keeps getting new orders and customers.

now i want to added the new info from the live and put it into the demo site before switching? how should i do this

  1. Put the site into maintenance.
  2. Move 1.38a database to your test system.
  3. Reconvert the database (including any db updates needed for your mods).
  4. Retest.
  5. Move the site including database to the live location (or repoint the live location to what was the test site)

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Jul 2010, 11:45 PM
#5
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Database upgrade - will this wipe added tables from mods

ok so when i'm ready to go live i should

  1. upgrade my current live site's database
    2.then add all the mod database changes that i've done on the test site.
    2.then test database on test site
    3.once ready point the url to the test site

sounds easy enough

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

6 Jul 2010, 7:32 AM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Database upgrade - will this wipe added tables from mods

You should put your live site into maintenance first, unless you're confident of not receiving orders during your conversion - though it's best to make sure.

You only need to apply database updates for mods that are not already in your live database.

Yes, pointing the URL to the tested site is my preference too. Most people seem to prefer the idea that the location of a site is fixed and the tested version moves to that location. I've always wondered why they would want to put themselves through the stress of moving a couple of thousand files and often the database too, when there's a tested version nearby that needs only to be pointed to.
:wink:

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 Jul 2010, 12:33 PM
#7
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Database upgrade - will this wipe added tables from mods

kuroi:

You should put your live site into maintenance first, unless you're confident of not receiving orders during your conversion - though it's best to make sure.

You only need to apply database updates for mods that are not already in your live database.

Yes, pointing the URL to the tested site is my preference too. Most people seem to prefer the idea that the location of a site is fixed and the tested version moves to that location. I've always wondered why they would want to put themselves through the stress of moving a couple of thousand files and often the database too, when there's a tested version nearby that needs only to be pointed to.
:wink:

Another big advantage of kuroi's approach is that you won't end up with old files left over from mods you may have installed at some stage but you won't be using anymore in the upgraded store. In other words, you re-start your shop with a 'clean' file system :cool:.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

6 Jul 2010, 12:48 PM
#8
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Database upgrade - will this wipe added tables from mods

how about just inporting the tables for the customers and orders?

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

6 Jul 2010, 12:54 PM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Database upgrade - will this wipe added tables from mods

If you're confident that nothing else has changed, understand which tables go together (e.g. the address_book has to go with the customer tables) and are happy to do the 1.3.9 upgrades to the orders tables by hand, then that would be a viable path.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

24 Jul 2010, 2:28 PM
#10
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Database upgrade - will this wipe added tables from mods

i think i will be tackling this in the next few days :(

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

24 Jul 2010, 5:31 PM
#11
atiqkhan avatar

atiqkhan

New Zenner

Join Date:
Jul 2010
Posts:
8
Plugin Contributions:
0

Re: Database upgrade - will this wipe added tables from mods

I have upgraded my zen cart from 1.38 to 1.39 . Now this warning is showing :

Warning Your database appears to need patching to a higher level. See Admin->Tools->Server Information to review patch levels.

Please help me how to fix this . Thanks in Advance...

24 Jul 2010, 5:36 PM
#12
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Database upgrade - will this wipe added tables from mods

atiqkhan:

I have upgraded my zen cart from 1.38 to 1.39 . Now this warning is showing :

Warning Your database appears to need patching to a higher level. See Admin->Tools->Server Information to review patch levels.

Please help me how to fix this . Thanks in Advance...You have to follow all the steps in the upgrade process, I recommend going back over them step-by-step, as if you've skipped the database upgrade, you may have missed other steps too.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 Aug 2010, 8:23 PM
#13
theehman avatar

theehman

New Zenner

Join Date:
Jul 2007
Posts:
25
Plugin Contributions:
0

Re: Database upgrade - will this wipe added tables from mods

What if you're using a host that installs Zen Cart automatically for you? How can you get rid of the message in that case?

My host installed v1.3.8, which I'm going to upgrade to v1.3.9, and I imported my old db file into the new one.

6 Aug 2010, 11:01 PM
#14
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Database upgrade - will this wipe added tables from mods

The steps for upgrading are the same, whether you did the original installation, or it was done by your web host.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)