From f45285e98d84012da09c40dc9dfe7ea4e8c30dc5 Mon Sep 17 00:00:00 2001 From: pb Date: Sat, 14 May 2011 10:40:58 +0000 Subject: [PATCH] Modul ccm-cms wird jetzt als new style legacy compatible application initialisiert. Update 6.6.1-6.6.2 erforderlich. git-svn-id: https://svn.libreccm.org/ccm/trunk@908 8810af33-2d31-482b-a856-94f89814c4df --- .../6.6.1-6.6.2/upd_table_applications.sql | 37 ++++++++++++++ .../ccm-cms/upgrade/oracle-se-6.6.1-6.6.2.sql | 22 +++++++++ .../ccm-cms/upgrade/postgres-6.6.1-6.6.2.sql | 26 ++++++++++ ccm-cms/src/ccm-cms.upgrade | 6 +-- ccm-cms/src/com/arsdigita/cms/Loader.java | 48 +++++++++++-------- .../AddNewStyleApplicationEntries.java | 41 ++++++++++++++-- 6 files changed, 151 insertions(+), 29 deletions(-) create mode 100644 ccm-cms/sql/ccm-cms/default/upgrade/6.6.1-6.6.2/upd_table_applications.sql create mode 100644 ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.6.1-6.6.2.sql create mode 100644 ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.1-6.6.2.sql diff --git a/ccm-cms/sql/ccm-cms/default/upgrade/6.6.1-6.6.2/upd_table_applications.sql b/ccm-cms/sql/ccm-cms/default/upgrade/6.6.1-6.6.2/upd_table_applications.sql new file mode 100644 index 000000000..78e9e75e5 --- /dev/null +++ b/ccm-cms/sql/ccm-cms/default/upgrade/6.6.1-6.6.2/upd_table_applications.sql @@ -0,0 +1,37 @@ +-- +-- Copyright (C) 2011 Peter Boy 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: upd_table_applications.sql pboy $ + +update applications + set package_id = (select site_nodes.object_id + from site_nodes + where site_nodes.url = applications.primary_url) + where application_type_id = (select application_types.application_type_id + from application_types + where object_type + like 'com.arsdigita.cms.Workspace'); + +update applications + set package_id = (select site_nodes.object_id + from site_nodes + where site_nodes.url = applications.primary_url) + where application_type_id = (select application_types.application_type_id + from application_types + where object_type + like 'com.arsdigita.cms.Service'); + diff --git a/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.6.1-6.6.2.sql b/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.6.1-6.6.2.sql new file mode 100644 index 000000000..05a23948e --- /dev/null +++ b/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.6.1-6.6.2.sql @@ -0,0 +1,22 @@ +-- +-- Copyright (C) 2011 Peter Boy 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.6.1-6.6.2.sql 293 2011-05-13 15:10:39Z pboy $ + +PROMPT Red Hat Enterprise CMS 6.6.1 -> 6.6.2 Upgrade Script (Oracle) + +@@ ../default/upgrade/6.6.1-6.6.2/upd_table_applications.sql diff --git a/ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.1-6.6.2.sql b/ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.1-6.6.2.sql new file mode 100644 index 000000000..0d096958e --- /dev/null +++ b/ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.1-6.6.2.sql @@ -0,0 +1,26 @@ +-- +-- Copyright (C) 2011 Peter Boy 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: 2011/05/13 23:15:09 $ + +\echo Red Hat Enterprise CMS 6.6.1 -> 6.6.2 Upgrade Script (PostgreSQL) + +begin; + +\i ../default/upgrade/6.6.1-6.6.2/upd_table_applications.sql + +commit; diff --git a/ccm-cms/src/ccm-cms.upgrade b/ccm-cms/src/ccm-cms.upgrade index 573e4fe5c..9b2eb2fdc 100755 --- a/ccm-cms/src/ccm-cms.upgrade +++ b/ccm-cms/src/ccm-cms.upgrade @@ -36,16 +36,12 @@