Zen Cart Logo
Forums / Upgrading to 1.5.x / Altered Database tables in 1.5.x?

Altered Database tables in 1.5.x?

Locked

Views: 1,301

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
8 Jan 2013, 9:56 PM
#1
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Altered Database tables in 1.5.x?

Hi all.

What tables are changed between 1.3.9h and the latest version of 1.5.x?

I ask because I want to build a fresh install of my site from scratch and when ready to go live I want to import products categories, orders etc

Can anyone advise?

Thanks

Phil

Phil Rogers
A problem shared is a problem solved.

8 Jan 2013, 10:23 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Altered Database tables in 1.5.x?

WE NEVER RECOMMEND COPYING JUST A FEW SELECTIVE TABLES BETWEEN DATABASES!!!!!!

That said, if you think you've got the expertise needed to do that safely, then you should simply run the zc_install "Database Upgrade" step on the old database before copying any data from it into the new site's database. That way the schema changes will be handled properly ... which appears to be the root question from your post.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Jan 2013, 10:26 PM
#3
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Altered Database tables in 1.5.x?

Well I guess what I'm asking is if none of the product/customer/order tables have changed then once I have a fresh install ill just drop the relevant table and I seer the old ones.

But I'd need to know if this would work, I.e have this tables been changed in any way?

Phil Rogers
A problem shared is a problem solved.

8 Jan 2013, 10:34 PM
#4
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Altered Database tables in 1.5.x?

philip937:

Well I guess what I'm asking is if none of the product/customer/order tables have changed then once I have a fresh install ill just drop the relevant table and I seer the old ones.

But I'd need to know if this would work, I.e have this tables been changed in any way?
No this won't work or it would be included in the upgrade instructions .. (see Dr Bytes post) Suggest following recommendations, do the upgrade and don't look for a shortcut.. There's no gain/upside to the path you are wanting to take.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

8 Jan 2013, 10:36 PM
#5
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Altered Database tables in 1.5.x?

DivaVocals:

No.. (see Dr Bytes post) Suggest following recommendations, do the upgrade and not looking for a shortcut..

Well what I'm suggesting is far from a shortcut! The shortcut is upgrading an old database, I am suggesting using a new database and importing certain data!

Phil Rogers
A problem shared is a problem solved.

8 Jan 2013, 10:43 PM
#6
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Altered Database tables in 1.5.x?

philip937:

Well what I'm suggesting is far from a shortcut! The shortcut is upgrading an old database, I am suggesting using a new database and importing certain data!
Then you have your answer.. What you are suggesting is not recommended. The best way to update the database is by following the recommended upgrade path as per Dr Bytes post.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

8 Jan 2013, 10:47 PM
#7
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Altered Database tables in 1.5.x?

What about old configuration entries for mods that are not compatible with 1.5.x that weren't supplied with uninstall SQL? Which by the way I think should be mandatory to provide for any mods in the download section.

Fair enough ill give it a go with the old db and try and clean it up somewhat.

Phil Rogers
A problem shared is a problem solved.

8 Jan 2013, 11:01 PM
#8
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Altered Database tables in 1.5.x?

philip937:

What about old configuration entries for mods that are not compatible with 1.5.x that weren't supplied with uninstall SQL? Which by the way I think should be mandatory to provide for any mods in the download section.

Fair enough ill give it a go with the old db and try and clean it up somewhat.if you think you know enough to selectively upgrade your DB then you should be able to put together an uninstall script.. not sure which add-ons you're using but unless it's old, I don't know very many without an uninstall script.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

8 Jan 2013, 11:05 PM
#9
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Altered Database tables in 1.5.x?

I said I could drop and insert tables on the proviso they are not altered in the new version. And I am capable of removing entries and creating a script I was merely suggesting we shouldn't have to and they should be included in the download.. Chill

Phil Rogers
A problem shared is a problem solved.

8 Jan 2013, 11:14 PM
#10
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Altered Database tables in 1.5.x?

philip937:

I said I could drop and insert tables on the proviso they are not altered in the new version. And I am capable of removing entries and creating a script I was merely suggesting we shouldn't have to and they should be included in the download.. Chill
Well we can go back and forth about all the things you should and shouldn't have to do.. That won't solve your problem.. Based on your post, you have an add-on that has no uninstall script.. So apparently you do have to do some work to remove the DB entries for these add-ons.. Here's what I suggest..

  1. Follow the upgrade instructions as Dr Byte advises.. (he is after all the BEST source of the correct method to do this)
  2. If your mods really do not have any kind of uninstall script, and you do not know how to back out the DB entries created by them, then you can check the support thread for your add-ons for options to remove the DB entries created by your add-ons..

Good luck..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

8 Jan 2013, 11:15 PM
#11
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Altered Database tables in 1.5.x?

Thanks for your input guys

Phil Rogers
A problem shared is a problem solved.

8 Jan 2013, 11:15 PM
#12
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Altered Database tables in 1.5.x?

delete duplicated post grrrrr

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

8 Jan 2013, 11:33 PM
#13
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Altered Database tables in 1.5.x?

Actually just had a thought, main reason for my thinking is that I'm obviously not going to perform the upgrade on my live site. Therefore whilst I'm upgrading and developing/testing I will still be getting customers & orders on original database.
How would you suggest I deal with that?

Phil Rogers
A problem shared is a problem solved.

8 Jan 2013, 11:49 PM
#14
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Altered Database tables in 1.5.x?

philip937:

Actually just had a thought, main reason for my thinking is that I'm obviously not going to perform the upgrade on my live site. Therefore whilst I'm upgrading and developing/testing I will still be getting customers & orders on original database.
How would you suggest I deal with that?

If you are following the upgrade instructions in the FAQ, this is covered in the upgrade instructions..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

9 Jan 2013, 3:39 AM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Altered Database tables in 1.5.x?

philip937:

Actually just had a thought, main reason for my thinking is that I'm obviously not going to perform the upgrade on my live site. Therefore whilst I'm upgrading and developing/testing I will still be getting customers & orders on original database.
How would you suggest I deal with that?
I wrote a blog post on that very topic:
http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading
I believe there's a link to that blog post in the FAQs on upgrading at https://www.zen-cart.com/upgrade

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Jan 2013, 9:07 PM
#16
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Re: Altered Database tables in 1.5.x?

As a follow up to this......

Upgrade Path for me is a bit different and I want to understand it before go time.

I have created a localhost version with a new database. I imported my old data into it so that I could have something to work with. While I do this, my old version is cranking away getting new sales. So.....

  1. Finish 1.5.1 "tweaking" and Module additions for localhost (Current Database has the EXACT same name as my server)
  2. Backup my old database.
  3. Upload the entire "tweaked" 1.5.1 directory to my server.
  4. Run zc_install and choose "Database Upgrade"
  5. Test site further to ensure everything works......

Does this sound right? I only ask is that I have no seen an upgrade path for a localhost type testing. Am I missing anything?

Thanks
Chris

9 Jan 2013, 9:28 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Altered Database tables in 1.5.x?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.