Fix a bug in the upgrade script, with a default applied to the wrong column.

Built the add method, and tested it, too.
This commit is contained in:
Colin Kuskie 2008-02-15 23:17:52 +00:00
parent 649d34f1a7
commit 19591d37d4
3 changed files with 107 additions and 4 deletions

View file

@ -62,8 +62,8 @@ sub insertCommerceTaxTable {
CREATE TABLE tax (
taxId VARCHAR(22) binary NOT NULL,
field VARCHAR(100) NOT NULL,
value VARCHAR(100) DEFAULT 0.0,
taxRate FLOAT NOT NULL,
value VARCHAR(100),
taxRate FLOAT NOT NULL DEFAULT 0.0,
PRIMARY KEY (taxId),
UNIQUE KEY (field, value)
)