fix discount display after mysql schema change fix