ALTER TABLE groups RENAME type TO type_id;

