From 0dab49e03becad7952e123b99114fbbedc686c60 Mon Sep 17 00:00:00 2001 From: jensp Date: Thu, 30 May 2013 12:24:08 +0000 Subject: [PATCH] =?UTF-8?q?Organizationen=20(speziell=20Projekte)=20k?= =?UTF-8?q?=C3=B6nnen=20jetzt=20nach=20den=20Mitgliedern=20gefiltert=20wer?= =?UTF-8?q?den=20(Ticket=20#1678).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.libreccm.org/ccm/trunk@2157 8810af33-2d31-482b-a856-94f89814c4df --- .../GenericOrganizationalUnit.pdl | 2 + .../6.6.7-6.6.8/add_personsstr_column.sql | 22 +++++ .../ccm-cms/upgrade/postgres-6.6.7-6.6.8.sql | 1 + ccm-cms/src/ccm-cms.upgrade | 3 + .../contentsection/ContentSectionSetup.java | 65 +++++++------- .../GenericOrganizationalUnit.java | 1 + .../GenericOrganizationalUnitBundle.java | 28 ++++++ .../upgrade/CreateGenericContentTypes.java | 13 +-- .../cms/upgrade/PersonsStrColumn.java | 86 +++++++++++++++++++ 9 files changed, 179 insertions(+), 42 deletions(-) create mode 100644 ccm-cms/sql/ccm-cms/default/upgrade/6.6.7-6.6.8/add_personsstr_column.sql create mode 100644 ccm-cms/src/com/arsdigita/cms/upgrade/PersonsStrColumn.java 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 @@ +