ALTER TABLE workflow ADD COLUMN collection_id int(11) NOT NULL DEFAULT 1;

ALTER TABLE workflow_description ADD COLUMN hierarchy_id int(11) NOT NULL DEFAULT 1;
ALTER TABLE workflow_description ADD COLUMN collection_id int(11) NOT NULL DEFAULT 1;

CREATE TABLE IF NOT EXISTS `sf_guard_user_workflows` (
  `workflow_id` int(11) NOT NULL,
  `workflow_description_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL
) ENGINE=InnoDB  DEFAULT CHARSET=latin1;