it looks like this might be a quick fix. upgrade to beta 14 generates this error:

The following queries were executed
uc_discounts module
Update #2

    * ALTER TABLE {uc_discounts} ADD has_qualifying_amount_max tinyint NOT NULL default 0 AFTER qualifying_amount
    * ALTER TABLE {uc_discounts} ADD qualifying_amount_max float NOT NULL default 0 AFTER has_qualifying_amount_max
    * Failed: ALTER TABLE uc_discounts MODIFY has_role_filter tinyint NOT NULL

The fix is in 'uc_discounts.install': lines 423 - 425

<?php

			//Fixes update bug that existed in uc_discounts_update_1 (but is fixed now)
//  the following line should have '{' and '}' brackets for those like me who use a drupal prefix
//			$queries[] = update_sql("ALTER TABLE uc_discounts MODIFY has_role_filter tinyint NOT NULL");
			$queries[] = update_sql("ALTER TABLE {uc_discounts} MODIFY has_role_filter tinyint NOT NULL");
			break;
?>

Comments

ryangroe’s picture

Oh, that was sloppy of me. Thanks gtfourdreams. I'll release a fixed version tonight.

ryangroe’s picture

Assigned: Unassigned » ryangroe

This has been fixed in CVS and the fix will be part of beta 15 to be released tonight.

gtfourdreams’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.