Jump to content

Upgrading 1.6.0.9 to 1.6.1.1 Database


Recommended Posts

Hi, I updated from 1.6.0.9 to 1.6.1.1.  All the code is up to date, but the datebase is the 1.6.0.9 version.  Is there somewhere I can see what code to run to update the tables to have proper content?  Also when I go to the products tab it says 

  • Bad SQL query
    Unknown column 'image_shop.id_product' in 'on clause'

 

 

It is missing the ps_ which is what I have set as _DB_PREFIX_ in settings.inc.php file  Thank you

Edited by treyj45 (see edit history)
Link to comment
Share on other sites

This is not about the prefix.

 

Prestashop added some fields with the 1.6.1 update for the purpose of optimizing speed. One of those fields is an id_product field in the (ps_)image_shop table. 

 

You can find the generators of those database changes in the install directory of a new installation in the subdirectory /install/upgrade/sql.

 

It goes step by step. So to upgrade the database from 1.6.0.9 to 1.6.1.1 you would first apply 1.6.0.10.sql, then 1.6.0.11.sql, etc. Please note that you can't use those files as they are. They use some shortcut with the prefixes.

Edited by musicmaster (see edit history)
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...