Zen Cart Logo
Forums / Upgrading to 1.5.x / New install but with some tables from 151

New install but with some tables from 151

Views: 1,421

Results 1 to 17 of 17
1 Apr 2016, 2:24 PM
#1
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

New install but with some tables from 151

Hi
First , let me take my hat for the developers of 155.
just made a fresh install , and the installer, the admin and front page looks real nice.
Just miss some smacks architecture with scss, but generally speaking, the zen state it's probably a utopia.

But, my question is:

I'm not going to upgrade, I'll start from scratch , but I'm going to export / import, customers, orders.... not sure what else, but those tables that are really needed related to customers and orders...so the essencial stuff.
Then, modules, etc.. it's all fresh.... hum, and probably the ezpages info too.

So, considering this, do I need to do something special on this tables ? or they'll work nice on 155

Thanks

1 Apr 2016, 3:20 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,080
Plugin Contributions:
56

Re: New install but with some tables from 151

mesnitu, I think that your best approach is to update your entire database using zc_install's upgrade path. There are a whole lot of table interdependencies that will be taken care of using that script.

1 Apr 2016, 5:43 PM
#3
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: New install but with some tables from 151

I was really trying to avoid that, to start has clean as possible. A lot of modules that the shop wont use anymore, others that will.
Not to speak the configuration and configuration groups tables.... finding out what is to remove vs not.
But, I'll try that upgrade tables process

Thanks

1 Apr 2016, 6:11 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: New install but with some tables from 151

but I'm going to export / import, customers, orders
Orders are dependent upon having the products related tables in place,
customers are dependent upon so many tables to capture order history etc

If you want any of this, you really need to import your full database and upgrade it

2 Apr 2016, 12:11 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: New install but with some tables from 151

Note also... Even though previous plugins were installed that modified the database in some way, if the code that accompanies a setting is not present, then modifying that setting doesn't affect anything. Ie, a setting that remains behind say in the configuration menu.

Also, there is a plugin (name escapes me at the moment) that reviews/evaluates your setup and identifies changes that have been made away from a default install. That information can help to "clean up" areas that are a possible nuissance or just database bloat. :)

2 Apr 2016, 8:19 AM
#7
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: New install but with some tables from 151

Thanks.
Just to say that I didn't mentioned, but I would first import all related to products, categories ... but my simple plan was not to import the tables, but use EP4 to do it.
So all categories , special price, categories to products ( or the other way around ), product types, etc, etc... would be in place with products ID.
Then all related to customers and orders, that would catch the products id.
It was a nice simple plan.

Do I feel hope in the air ?

I have to look for that plugin, cause I more or less know the modules, but the idea on going through each one of them to see the uninstall !
Not to mention, that to see them... I actually must have all the files.... oh... I was struck by reality right now !

2 Apr 2016, 8:57 AM
#8
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: New install but with some tables from 151

Using the existing database is still much easier. Importing the products with ep on a clean database does not guarantee you will end up with the same product id's. After which importing old orders and customers is moot.
My opinion is, it is much easier to clean up the obsolete mods from the database manually, using phpmyadmin.

mesnitu:

Thanks.
Just to say that I didn't mentioned, but I would first import all related to products, categories ... but my simple plan was not to import the tables, but use EP4 to do it.
So all categories , special price, categories to products ( or the other way around ), product types, etc, etc... would be in place with products ID.
Then all related to customers and orders, that would catch the products id.
It was a nice simple plan.

Do I feel hope in the air ?

I have to look for that plugin, cause I more or less know the modules, but the idea on going through each one of them to see the uninstall !
Not to mention, that to see them... I actually must have all the files.... oh... I was struck by reality right now !

2 Apr 2016, 9:05 AM
#9
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: New install but with some tables from 151

No hope in the air no more :)
ok, thanks all !

2 Apr 2016, 9:20 AM
#10
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: New install but with some tables from 151

Maybe this mod can help in the clean up. https://www.zen-cart.com/downloads.php?do=file&id=2039
I think this will also be added to the core in a future Zen Cart release.

mesnitu:

No hope in the air no more :)
ok, thanks all !

2 Apr 2016, 10:40 AM
#11
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: New install but with some tables from 151

Design75:

Using the existing database is still much easier. Importing the products with ep on a clean database does not guarantee you will end up with the same product id's. After which importing old orders and customers is moot.
My opinion is, it is much easier to clean up the obsolete mods from the database manually, using phpmyadmin.

Agree with all not directly related to bold text above. EP4 now offers the ablity to import and export on products_id so it is possible to one-for-one establsh/re-establish product by their products_id. But the upgrade process remains the preferred and suggested method.

2 Apr 2016, 10:40 AM
#12
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: New install but with some tables from 151

Design75:

Using the existing database is still much easier. Importing the products with ep on a clean database does not guarantee you will end up with the same product id's. After which importing old orders and customers is moot.
My opinion is, it is much easier to clean up the obsolete mods from the database manually, using phpmyadmin.

Agree with all not directly related to bold text above. EP4 now offers the ablity to import and export on products_id so it is possible to one-for-one establsh/re-establish product by their products_id. But the upgrade process remains the preferred and suggested method.

2 Apr 2016, 8:52 PM
#13
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: New install but with some tables from 151

ok
So, I had to try it right ?

In this case, I really don't want no modules, no files that I don't even remember, ( just the translations and not all of it ) and I'll work all over again in the store configs and taxes, new template and template configs, etc.. or even try to add some more stuff, like zones, countries, etc...

Had a litle situation, cause in the online shop, the products ID started at 5. So uploading the products only with EP4 woudn't work.
Just imported the data from products table, ( just inserted, didn't drop or create ), and with those IDs in place, with EP4, it populated all the rest.
Then imported the customers, orders, addressees, etc.
And I've been comparing both of the "shops" , and until now, they look the same on orders, products pruchase, viewed , etc...
So hope to the world !

Of course, I should stress this out, that this is related to this particular situation, where I really want to install modules from scratch, cause today I have a better understanding what the shop needs and what I can do.

I might be partying before time, but for a while that I've been "walking" around, and all looks good.

2 Apr 2016, 11:11 PM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: New install but with some tables from 151

Just imported the data from products table,
What about categories, categories_description,customers_basket, customers_basket_attributes, customers_info, orders_products, orders_products_attributes, orders_status, orders_status_history, orders_total, products_attributes, products_description, products_options, products_options_types, products_options_values, products_options_values_to_products_options, products_to_categories.

3 Apr 2016, 1:00 AM
#15
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,956
Plugin Contributions:
8

Re: New install but with some tables from 151

allow me to re-iterate when everyone has previously said, all data is good... doing the database upgrade, even if you have extra records, fields, files and the like will still work fine on a fresh code install...

the db upgrade will put your data ready to use for v1.5.5 and i'm of the opinion that it will be easier to delete what data you do not need (hardly seems worth the effort); then trying to figure out what the heck you missed or what index is not matching to another index on another table.

frankly, if you feel you have a better understanding of ZC, then it would behoove you to more focus on the code of the plugins and keeping as much of that separate from the core. just my 2 cents.

good luck!

3 Apr 2016, 10:36 AM
#16
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: New install but with some tables from 151

All there. ( what I need )

But again, this was for this situation, where no attribute or products options. Never work with attributes and options. But I don't see how ep4 can ignore a products id.

Categories, manufactures description: the shop doesn't have them, if it did, EP4 doesn't take care of them.

 if you feel you have a better understanding of ZC

No

3 Apr 2016, 10:53 AM
#17
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: New install but with some tables from 151

mesnitu:

All there. ( what I need )

But again, this was for this situation, where no attribute or products options. Never work with attributes and options. But I don't see how ep4 can ignore a products id.

Categories, manufactures description: the shop doesn't have them, if it did, EP4 doesn't take care of them.

if you feel you have a better understanding of ZC

> 
> No

Default EP4 operation as explained in the instructions uses the products_model as the primary key for import/export. This means that products_id doesn't mean anything to EP4. There is a setting in the configuration menu though that allows/offers import AND export to be by products_id... This setting though allows more direct access to the database and from a spreadsheet perspective ("tool" for EP4) this can be easily/accidentally changed. So it is my recommendation to use this option wisely and as needed for a specific situation/type of use...

Category information is covered by a separate import "file". Specifically because category data is in a table set of it's own and not directly related to a product but can contain many products or other categories...