Jump to content

1.2.5 Database Upgrade Issues to 1.3


Recommended Posts

I attempted an upgrade to 1.3 previously but had problems with the database so rolled back to 1.2.5.

It seems that a number of tables were modified on the most recent releases.

I compared the databases with :
http://www.addictivetips.com/windows-tips/compare-two-mysql-database-with-mysql-structure-compare/

Is there a way to export the products from prestashop?

The tricky part is all the attribute tables.

Can anyone suggest how to solve this?
All suggestions appreciated!

Link to comment
Share on other sites

I think the issues most people are having with upgrades are because PrestaShop has added many indexes to database tables in PrestaShop v1.3 to improve performance. Unfortunately, if there are any duplicate rows in any of these tables, the installation will fail. I've already posted a bug report asking PrestaShop to check for these errors and remove duplicate rows to prevent the upgrade from failing. I'm still waiting for a response.

I'm pretty sure that the product and attributes tables are the same in PrestaShop v1.2.5 and v1.3, so it should be safe to export the product and attribute tables and import them into a clean install of PrestaShop v1.3.

Link to comment
Share on other sites

Interesting, please keep me posted.

The problem with exporting the product tables and attributes is that it doesn't move over the CMS and all the custom meta tags or other manual process that have to be setup.

There should be a simple way to move from one presta to another.

How will people do it moving forward? I'm surprised they didn't create a .sql that could be executed. (the software I used did, but I had a hard time getting it to execute.)

Link to comment
Share on other sites

They do provide upgrade SQL files in install/sql/upgrade, but running them directly won't work, since they include calls to PHP functions in the installer. You must run the installer to upgrade your database, but that doesn't automatically upgrade PrestaShop's files, of course. You must do that manually, which is what many people seem to be having trouble with for some reason. I didn't encounter any problems upgrading my PrestaShop v1.2.5 site to PrestaShop v1.3.

Link to comment
Share on other sites

The problem I encountered is when you enter the database information.

You can not get past that screen because it says the database already exists and to change the Name or Prefix.

Neither solves the problem.

So you can't get further down the install process.

Any suggestions?

Link to comment
Share on other sites

You must have chosen the "Install" option rather than the "Update" option. You can do a clean install using a different prefix, or upgrade your existing PrestaShop v1.2.5 database to PrestaShop v1.3 using the "Update" option. It will read your config/settings.inc.php file and use the details in there.

Link to comment
Share on other sites

  • 2 weeks later...
I think the issues most people are having with upgrades are because PrestaShop has added many indexes to database tables in PrestaShop v1.3 to improve performance. Unfortunately, if there are any duplicate rows in any of these tables, the installation will fail. I've already posted a bug report asking PrestaShop to check for these errors and remove duplicate rows to prevent the upgrade from failing. I'm still waiting for a response.

I'm pretty sure that the product and attributes tables are the same in PrestaShop v1.2.5 and v1.3, so it should be safe to export the product and attribute tables and import them into a clean install of PrestaShop v1.3.


I got same errors : Duplicaterows

The process of Updating was waste of time for me.

The biggest fault of presta is almost impossibilty of update
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

When you perform the upgrade, you should get an SQL error log. In that log, you can see the SQL queries and errors caused by duplicate rows. Using that, you can figure out which tables need to have duplicate rows remove, then remove them using phpMyAdmin, then manually re-run the SQL query that caused the error.

Unfortunately, if you didn't copy that log, there is no way to access it. You'll have a hybrid v1.2.5/v1.3.1 database that won't function correctly. In that case, it is best to restore a backup of your v1.2.5 database and upgrade your site again so that you can get the SQL error log. If you didn't back up your v1.2.5 database, you're out of luck. The PrestaShop installer can only upgrade from a v1.2.5 database to a v1.3.1 database and not from a hybrid v1.2.5/v1.3.1 database.

Link to comment
Share on other sites

Well I tried something else which I haven't read much about but let me know if you think this would work. I did a clean install of 1.3. I then went into phpmyadmin and imported my 1.1 backed up database into the clean 1.3 database. It appears all the products and categories transferred and it's working. Could this be an alternate way of updating minus all the sql errors from my last attempt? Or will there be unforseen issues later? Thanks.

Link to comment
Share on other sites

  • 2 weeks later...

Well according to Rocky yes it should work. So far I've updated using this method and no problems so far. I think it would be a good idea for the developers of Prestashop to mention alternative ways of updating since it's such a hassle. Just my 2 cents.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...