Zen Follower
- Join Date:
- Apr 2007
- Posts:
- 138
- Plugin Contributions:
- 0
Database upgrade failing
Going from 1.3.7 to 1.3.8.
I did a test database upgrade on a restored DB from earlier today and everything went great. I then deleted the DB and install files, re-uploaded so that everything was by the books and now I get this error.
1062 Duplicate entry 'Customers who have never completed a purchase' for key 2
in:
[INSERT INTO zen_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');]I can delete the DB and files, recreate them, and keep the same error. I don't understand why it worked once but I can't get it to work again. Any ideas?