Closed (fixed)
Project:
Ubercart Discount Coupons
Version:
5.x-1.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2009 at 16:35 UTC
Updated:
28 May 2009 at 15:30 UTC
user warning: Unknown column 'products' in 'field list' query: UPDATE uc_coupons SET name = 'Test Coupon', code = 'testcoupon', value = 25, type = 'percentage', status = 1, valid_until = 1240977600, max_uses = 0, products = '0', users = '', roles = '1', minimum_order = 0 WHERE cid = 41 in /home/html/includes/database.mysql.inc on line 174.
When changing the date of an existing coupon
Comments
Comment #1
thill_ commentedSo When I upgraded I ran update.php as I normally do, but it seems that the update never fired, I was able to manually go in and fire update 1. This might be an issue when using 1 as the update. I can't test right now, but i am thinking changing that to 6001 would make it fire like it should.
Comment #2
longwaveThis has worked fine in my testing, update ID 1 should work okay as the default schema version is 0. Schema version 6001 is reserved for Drupal 6 installations, but you are using Drupal 5.
Which version of the module did you upgrade from? There's several versions of uc_coupon floating around which doesn't help things here, unfortunately.
Comment #3
longwaveThis field has been removed in the latest version, so this should no longer be an issue.