You could write a program to do it ...

The discounts are in the products_discount_quantity table and then the two fields in the products table for products_discount_type and products_discount_type_from would need to be updated ...