Luckily you’re doing everything on your local / test environment.
MySQL said:
#1060 - Duplicate column name ‘item_product_id
First instinct would be:
- drop the column so it can be re-added
(^^ don’t do that)
If you check your … what is it … ip_invoice_items table it’s probably filled with lots of invoice_items
So … the .sql file is wrong.
And it’s probably in ip_versions
, but still gets executed.
That’s weird, but ok.
Move that file to somewhere temporary.
You don’t know if the rest either did or did not get executed.
any fresh 1.6.2 can be done by just downloading the .zip and installating it.
That will give you the fresh database.
Unknown column ‘ip_client_custom.client_custom_fieldid
Just add that column.
Find out in which .sql file it got added and write that down.
Now you’re stuck between update 19 and update 38.
Still, i would compare the broken 1.6.2 structure and the fresh 1.6.2 structure (export from phpmyadmin)
Then you’ll probably find out what’s missing as well