Jump to content

id database column type


mferrari

Recommended Posts

Hi, trying to integrate prestashop with our system we have the problem that our id's on manufactures, products, categories are varchar, exists the possibility to change columns type to varchar or it will cause a corruption on the prestashop core?

 

Best Regards

Link to comment
Share on other sites

Hi mferrari,

 

First of all, can I admit your system tables which are have varchar IDs instead of integer, can contains any text ID record? If your answer is No, please think better about your own database architecture before to consider change anything on Prestashop database.

 

Nevertheless, tables architecture are not independent in Prestashop, they all work together with their respetives classes that are have every single property defined by a name and a type.

 

So... It's up to you. My personal opinion, always try to follow the right patterns. Please consider that yours may not right.

 

Hope it helps,

Rubens Cury

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...