Jump to content

[solved]reduction from - sql query


guest*

Recommended Posts

Today I installed the modul ventes flash and this modul has reseted in the DB the tables "reduction_from "and "reduction_to" to 0000-00-00 00:00:00.
Now it is not possible to copy or edit any product without changing this into a valid date/time. It comes: "Fatal error (Product -> reduction_from = 0000-00-00 00:00:00)"

Is there any SQL-query I can set the reduction_from and reduction_to to a valid date (ex. 2010-12-15 00:00:00 for both tables ?)

Link to comment
Share on other sites

Thx. Sorry I'm a really nooby in codes..
I tried your code and also this:

UPDATE 'ps_product' SET 'reduction_from' = '2010-10-01 00:00:00', 'reduction_to' = '2010-10-01 00:00:00';



UPDATE 'ps_product' SET 'reduction_from' = '2010-12-15 00:00:00';



UPDATE 'ps_product' SET reduction_from = '2010-12-15 00:00:00';



all with error in SQL syntax.

Link to comment
Share on other sites

  • 4 weeks later...

??? The code stated below worked for me. What is your problem ?

0 ligne(s) affectée(s). ( Traitement en 0.0121 sec. ) - says that no line is affected, because you don't have any line matching the code you have typed. Try to type this in capital letters:

UPDATE PRESTASHOP_PRODUCT SET 

Link to comment
Share on other sites

  • 5 months later...

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