diff --git a/ccm-cms/application.xml b/ccm-cms/application.xml index 77cb943c4..69b3bb78b 100755 --- a/ccm-cms/application.xml +++ b/ccm-cms/application.xml @@ -2,11 +2,11 @@ - + diff --git a/ccm-cms/pdl/com/arsdigita/content-section/CMSTask.pdl b/ccm-cms/pdl/com/arsdigita/content-section/CMSTask.pdl index f407f85f5..1742f8618 100755 --- a/ccm-cms/pdl/com/arsdigita/content-section/CMSTask.pdl +++ b/ccm-cms/pdl/com/arsdigita/content-section/CMSTask.pdl @@ -16,6 +16,7 @@ model com.arsdigita.cms.workflow; import com.arsdigita.workflow.simple.*; import com.arsdigita.kernel.ACSObject; +import com.arsdigita.cms.ContentType; object type CMSTask extends UserTask { composite CMSTaskType [1..1] taskType = join cms_tasks.task_type_id to cms_task_types.task_type_id; @@ -36,6 +37,7 @@ object type CMSTaskType { object type TaskEventURLGenerator { Integer [1..1] generatorID = cms_task_url_generators.generator_id INTEGER; String [1..1] event = cms_task_url_generators.event VARCHAR(100); + ContentType [0..1] contentType = join cms_task_url_generators.content_type to content_types.type_id; String [1..1] urlGeneratorClass = cms_task_url_generators.classname VARCHAR(128); object key (generatorID); diff --git a/ccm-cms/sql/ccm-cms/default/upgrade/6.5.2-6.5.3/cms_task_url_generators_upgrade.sql b/ccm-cms/sql/ccm-cms/default/upgrade/6.5.2-6.5.3/cms_task_url_generators_upgrade.sql new file mode 100644 index 000000000..9b6ee115b --- /dev/null +++ b/ccm-cms/sql/ccm-cms/default/upgrade/6.5.2-6.5.3/cms_task_url_generators_upgrade.sql @@ -0,0 +1,6 @@ +alter table CMS_TASK_URL_GENERATORS +add (content_type INTEGER); + +alter table cms_task_url_generators add + constraint cms_tas_url_gen_con_ty_f_lz1y5 foreign key (content_type) + references content_types(type_id); diff --git a/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.5.2-6.5.3.sql b/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.5.2-6.5.3.sql new file mode 100644 index 000000000..b1c8ecce5 --- /dev/null +++ b/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.5.2-6.5.3.sql @@ -0,0 +1,24 @@ +-- +-- Copyright (C) 2007 Chris Gilbert. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id: oracle-se-6.5.2-6.5.3.sql 293 2005-02-22 15:10:39Z cgilbert $ +-- $DateTime: 2004/08/16 18:10:38 $ + +PROMPT Red Hat Enterprise CMS 6.5.2 -> 6.5.3 Upgrade Script (Oracle) + +@@ ../default/upgrade/6.5.2-6.5.3/cms_task_url_generators_upgrade.sql + diff --git a/ccm-cms/sql/ccm-cms/upgrade/postgres-6.5.2-6.5.3.sql b/ccm-cms/sql/ccm-cms/upgrade/postgres-6.5.2-6.5.3.sql new file mode 100644 index 000000000..af0f9a142 --- /dev/null +++ b/ccm-cms/sql/ccm-cms/upgrade/postgres-6.5.2-6.5.3.sql @@ -0,0 +1,26 @@ +-- +-- Copyright (C) 2007 Chris Gilbert All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $DateTime: 2004/08/17 23:15:09 $ + +\echo Red Hat Enterprise CMS 6.5.2 -> 6.5.3 Upgrade Script (PostgreSQL) + +begin; + +\i ../default/upgrade/6.5.2-6.5.3/cms_task_url_generators_upgrade.sql + +commit; diff --git a/ccm-cms/src/ccm-cms.upgrade b/ccm-cms/src/ccm-cms.upgrade index e58af8441..f0ed7874b 100755 --- a/ccm-cms/src/ccm-cms.upgrade +++ b/ccm-cms/src/ccm-cms.upgrade @@ -29,5 +29,8 @@