Forums / Upgrading from 1.3.x to 1.3.9 / Upgrading DataBase fro 1.3.7 to 1.3.8

Upgrading DataBase fro 1.3.7 to 1.3.8

Locked

Started by adom on 27 Mar 2008, 5:23 PM · Views: 2,431

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Mar 2008, 5:23 PM
#1
adom avatar

adom

New Zenner

Join Date:
Apr 2007
Posts:
18
Plugin Contributions:
0

Upgrading DataBase fro 1.3.7 to 1.3.8

Hi all, while trying to upgrade my database, I get an error message:

1062 Duplicate entry 'Customers who have never completed a purchase' for key 2
in:
[INSERT INTO query_builder (query_category, query_name, query_description , query_string) VALUES ('email,newsletters', 'Customers who have never completed a purchase', 'For sending newsletter to all customers who registered but have never completed a purchase', 'SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM TABLE_CUSTOMERS c LEFT JOIN TABLE_ORDERS o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL');]

Can anyone help me with it?
Thanks
Rob

27 Mar 2008, 9:48 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Upgrading DataBase fro 1.3.7 to 1.3.8

Getting that error suggests that you've already tried to do that upgrade step once already.

If you're convinced that you've never done that, you'll have to comment out that particular insert statement in the upgrade SQL code.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Mar 2008, 3:35 PM
#3
adom avatar

adom

New Zenner

Join Date:
Apr 2007
Posts:
18
Plugin Contributions:
0

Re: Upgrading DataBase fro 1.3.7 to 1.3.8

Thanks Dr.