Jump to content

id_category bug (subtil)


yguerin

Recommended Posts

Dear,

 

Prestashop: 1.6.1.5

ubuntu 14.04

Percona-mysql: 5.5.48

 

Bug: prestashop schema erreor

- some id_category are int(11) and others are INT(10) UNSIGNED

- faulty tables:

-- ps_mapping_code_categories

-- ps_shop

 

Result: unable to forceid during importing the categories file into prestashop

 

Why it is happen: I compute my own numerical id for each categorie and I compute the same for each root (parent) id to be able to link my category tree.

ex: id = 1274667385 => OK

but: id = 3295216051 => error (thank for INT(11))

 

Solution: for those fields from thoses tables change INT(11) for INT(10) UNSIGNED.

 

Thanks to my colleague Eric for helping me to find this bug :)

 

Ask the QA team to send me a beer, in fact 2, one for me and one form my colleague :)

I know the QA team will kick the ... of the coder who did not follow the schema/the rule and/or the dba :)

 

I am able to attach my file if you want.

 

Regards,

 

Yves

 

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