-- switch parm1 and parm2 columns in callhist for 130 <= event <= 139
-- these values were inconsistent with other values for event in 2.1
BEGIN;

ALTER TABLE callhist ADD COLUMN tmp varchar(255);
update callhist set tmp = parm1 where event >= 130 and event <= 139;
update callhist set parm1 = parm2 where event >= 130 and event <= 139;
update callhist set parm2 = tmp where event >= 130 and event <= 139;
ALTER TABLE callhist DROP COLUMN tmp;

COMMIT;

