ALTER TABLE gw_grp ADD COLUMN cap_id int(10) NOT NULL default '1';

INSERT INTO version VALUES('gw_cap', 1);
UPDATE version SET table_version = 2 WHERE table_name = 'gw_grp';

CREATE TABLE gw_cap (
  cap_id int(10) unsigned NOT NULL auto_increment,
  cap_value int(4) NOT NULL default '0',
  cap_prefix varchar(15) NOT NULL default '',
  cap_description varchar(128) default NULL,
  PRIMARY KEY  (cap_id)
) TYPE=InnoDB;

