diff --git a/ccm-cms/pdl/com/arsdigita/content-types/GenericOrganizationalUnit.pdl b/ccm-cms/pdl/com/arsdigita/content-types/GenericOrganizationalUnit.pdl index 9149143b2..2b5d8ab22 100644 --- a/ccm-cms/pdl/com/arsdigita/content-types/GenericOrganizationalUnit.pdl +++ b/ccm-cms/pdl/com/arsdigita/content-types/GenericOrganizationalUnit.pdl @@ -27,6 +27,8 @@ import com.arsdigita.kernel.ACSObject; object type GenericOrganizationalUnit extends ContentPage { String[0..1] addendum = cms_organizationalunits.addendum VARCHAR(512); + String[0..1] personsStr = cms_organizationalunits.personsstr CLOB; + reference key (cms_organizationalunits.organizationalunit_id); } diff --git a/ccm-cms/sql/ccm-cms/default/upgrade/6.6.7-6.6.8/add_personsstr_column.sql b/ccm-cms/sql/ccm-cms/default/upgrade/6.6.7-6.6.8/add_personsstr_column.sql new file mode 100644 index 000000000..36290cd4d --- /dev/null +++ b/ccm-cms/sql/ccm-cms/default/upgrade/6.6.7-6.6.8/add_personsstr_column.sql @@ -0,0 +1,22 @@ +-- +-- Copyright (C) 2013 Jens Pelzetter 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$ + +-- adds to personsstr column (used for filtering organization by their members) + +ALTER TABLE cms_organizationalunits ADD COLUMN personsstr TEXT; \ No newline at end of file diff --git a/ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.7-6.6.8.sql b/ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.7-6.6.8.sql index 6fb0e9da5..7011573bd 100644 --- a/ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.7-6.6.8.sql +++ b/ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.7-6.6.8.sql @@ -24,5 +24,6 @@ begin; \i ../default/upgrade/6.6.7-6.6.8/rename_workspace_to_contentcenter.sql +\i ../default/upgrade/6.6.7-6.6.8/add_personsstr_column.sql commit; \ No newline at end of file diff --git a/ccm-cms/src/ccm-cms.upgrade b/ccm-cms/src/ccm-cms.upgrade index a4c415489..ec1366497 100755 --- a/ccm-cms/src/ccm-cms.upgrade +++ b/ccm-cms/src/ccm-cms.upgrade @@ -64,6 +64,9 @@ +