Integrating vendor r1699 and r1705
both are an addendum to vendor r1628 and make the update script as well as the main patch work in postgresql git-svn-id: https://svn.libreccm.org/ccm/trunk@48 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
78965b7743
commit
7ad23d2d04
|
|
@ -6,14 +6,17 @@
|
|||
release="1">
|
||||
<ccm:dependencies>
|
||||
|
||||
<ccm:requires name="ccm-core" version="6.5.3"/>
|
||||
<ccm:requires name="ccm-cms" version="6.5.3"/>
|
||||
<ccm:requires name="ccm-core" version="6.5.3" relation="ge"/>
|
||||
<ccm:requires name="ccm-cms" version="6.5.3" relation="ge"/>
|
||||
</ccm:dependencies>
|
||||
<ccm:contacts>
|
||||
<ccm:contact uri="http://www.redhat.com/software/rhea" type="website"/>
|
||||
<ccm:contact uri="mailto:rhea@redhat.com" type="support"/>
|
||||
</ccm:contacts>
|
||||
<ccm:description>
|
||||
A threadded forum application for online discussions using the Red Hat
|
||||
Web Application Framework.
|
||||
|
||||
The Red Hat Web Application Framework is a platform for writing
|
||||
database-backed web applications in Java.
|
||||
</ccm:description>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
// 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: Forum.pdl 542 2005-06-03 15:17:05Z sskracic $
|
||||
// $Id: Forum.pdl 1628 2007-09-17 08:10:40Z chrisg23 $
|
||||
// $DateTime: 2004/08/17 23:26:27 $
|
||||
model com.arsdigita.forum;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
// 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: Post.pdl 287 2005-02-22 00:29:02Z sskracic $
|
||||
// $Id: Post.pdl 1628 2007-09-17 08:10:40Z chrisg23 $
|
||||
// $DateTime: 2004/08/17 23:26:27 $
|
||||
model com.arsdigita.forum;
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
@@ ../oracle-se/upgrade/1.4.2-1.4.3/add-is_noticeboard.sql
|
||||
@@ oracle-se/1.4.2-1.4.3/add-is_noticeboard.sql
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
@@ ../oracle-se/upgrade/1.4.3-1.4.4/add-expiry.sql
|
||||
@@ oracle-se/1.4.3-1.4.4/add-expiry.sql
|
||||
|
|
|
|||
|
|
@ -1,8 +1,30 @@
|
|||
@@ ../default/upgrade/6.5.0-6.5.1/add_privileges.sql
|
||||
@@ ../default/upgrade/6.5.0-6.5.1/add_groups.sql
|
||||
@@ ../default/upgrade/6.5.0-6.5.1/add_thread_subscriber.sql
|
||||
@@ ../default/upgrade/6.5.0-6.5.1/add_file_attachments.sql
|
||||
@@ ../default/upgrade/6.5.0-6.5.1/add_forum_introduction.sql
|
||||
@@ ../default/upgrade/6.5.0-6.5.1/add_image_uploads.sql
|
||||
@@ ../default/upgrade/6.5.0-6.5.1/add_forum_no_category_posts.sql
|
||||
@@ ../default/upgrade/6.5.0-6.5.1/add_anonymous_option.sql
|
||||
--
|
||||
-- Copyright (C) chris.gilbert@westsussex.gov.uk All Rights Reserved.
|
||||
-- Copyright (C) pb@zes.uni-bremen.de 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
|
||||
--
|
||||
|
||||
PROMPT APLAWS ccm-forum 6.5.0 -> 6.5.1 Upgrade Script (Oracle)
|
||||
|
||||
|
||||
@@ ./oracle-se/6.5.0-6.5.1/add_privileges.sql
|
||||
@@ ./oracle-se/6.5.0-6.5.1/add_groups.sql
|
||||
@@ ./oracle-se/6.5.0-6.5.1/add_thread_subscriber.sql
|
||||
@@ ./oracle-se/6.5.0-6.5.1/add_file_attachments.sql
|
||||
@@ ./oracle-se/6.5.0-6.5.1/add_forum_introduction.sql
|
||||
@@ ./oracle-se/6.5.0-6.5.1/add_image_uploads.sql
|
||||
@@ ./oracle-se/6.5.0-6.5.1/add_forum_no_category_posts.sql
|
||||
@@ ./oracle-se/6.5.0-6.5.1/add_anonymous_option.sql
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
\i ../postgres/upgrade/1.4.2-1.4.3/add-is_noticeboard.sql
|
||||
\i postgres/1.4.2-1.4.3/add-is_noticeboard.sql
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
\i ../postgres/upgrade/1.4.3-1.4.4/add-expiry.sql
|
||||
\i postgres/1.4.3-1.4.4/add-expiry.sql
|
||||
|
|
|
|||
|
|
@ -1,10 +1,36 @@
|
|||
\i ../default/upgrade/6.5.0-6.5.1/add_thread_subscriber.sql
|
||||
\i ../default/upgrade/6.5.0-6.5.1/add_privileges.sql
|
||||
\i ../default/upgrade/6.5.0-6.5.1/add_groups.sql
|
||||
\i ../default/upgrade/6.5.0-6.5.1/add_privileges.sql
|
||||
\i ../default/upgrade/6.5.0-6.5.1/add_file_attachments.sql
|
||||
\i ../default/upgrade/6.5.0-6.5.1/add_forum_introduction.sql
|
||||
\i ../default/upgrade/6.5.0-6.5.1/add_image_uploads.sql
|
||||
\i ../default/upgrade/6.5.0-6.5.1/add_forum_no_category_posts.sql
|
||||
\i ../default/upgrade/6.5.0-6.5.1/add_anonymous_option.sql
|
||||
--
|
||||
-- Copyright (C) chris.gilbert@westsussex.gov.uk All Rights Reserved.
|
||||
-- Copyright (C) pb@zes.uni-bremen.de 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
|
||||
--
|
||||
|
||||
\echo APLAWS ccm-forum 6.5.0 -> 6.5.1 Upgrade Script (PostgreSQL)
|
||||
|
||||
begin;
|
||||
|
||||
\i ./postgres/6.5.0-6.5.1/add_privileges.sql
|
||||
\i ./postgres/6.5.0-6.5.1/add_groups.sql
|
||||
\i ./postgres/6.5.0-6.5.1/add_thread_subscriber.sql
|
||||
\i ./postgres/6.5.0-6.5.1/add_file_attachments.sql
|
||||
\i ./postgres/6.5.0-6.5.1/add_forum_introduction.sql
|
||||
\i ./postgres/6.5.0-6.5.1/add_image_uploads.sql
|
||||
\i ./postgres/6.5.0-6.5.1/add_forum_no_category_posts.sql
|
||||
\i ./postgres/6.5.0-6.5.1/add_anonymous_option.sql
|
||||
|
||||
commit;
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
alter table forum_forums add anonymous_posts_allowed BOOLEAN NOT NULL;
|
||||
|
||||
update forum_forums set anonymous_posts_allowed = FALSE;
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
create table forum_post_files
|
||||
(file_id INTEGER not null,
|
||||
file_order INTEGER,
|
||||
post_id INTEGER);
|
||||
|
||||
alter table forum_post_files add
|
||||
constraint FORU_POS_FILES_FILE_ID_P_IO1IR primary key (file_id);
|
||||
|
||||
alter table forum_post_files add
|
||||
constraint FORU_POS_FILES_FILE_ID_F_XBKED foreign key (file_id)
|
||||
references cms_files(file_id);
|
||||
|
||||
alter table forum_post_files add
|
||||
constraint FORU_POS_FILES_POST_ID_F_K0XJQ foreign key (post_id)
|
||||
references forum_posts(post_id);
|
||||
|
||||
|
||||
|
||||
alter table forum_forums add file_attachments_allowed BOOLEAN NOT NULL;
|
||||
|
||||
update forum_forums set file_attachments_allowed = TRUE;
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE FORUM_FORUMS ADD
|
||||
INTRODUCTION VARCHAR(4000) ;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
alter table forum_forums add no_category_posts_allowed BOOLEAN NOT NULL;
|
||||
|
||||
update forum_forums set no_category_posts_allowed = TRUE;
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
alter table forum_forums add
|
||||
admin_group_id INTEGER;
|
||||
alter table forum_forums add
|
||||
constraint foru_foru_admi_grou_id_f_k0nw6 foreign key (admin_group_id)
|
||||
references groups(group_id);
|
||||
|
||||
alter table forum_forums add
|
||||
create_group_id INTEGER;
|
||||
alter table forum_forums add
|
||||
constraint foru_foru_crea_grou_id_f_f7x57 foreign key (create_group_id)
|
||||
references groups(group_id);
|
||||
|
||||
alter table forum_forums add
|
||||
respond_group_id INTEGER;
|
||||
alter table forum_forums add
|
||||
constraint foru_foru_respo_gro_id_f_rnofz foreign key (respond_group_id)
|
||||
references groups(group_id);
|
||||
|
||||
alter table forum_forums add
|
||||
read_group_id INTEGER;
|
||||
alter table forum_forums add
|
||||
constraint foru_forum_rea_grou_id_f_itati foreign key (read_group_id)
|
||||
references groups(group_id);
|
||||
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
create table forum_post_images
|
||||
(post_id INTEGER,
|
||||
image_id INTEGER not null,
|
||||
image_order INTEGER);
|
||||
|
||||
alter table forum_post_images add
|
||||
constraint FORU_POS_IMAGE_IMAG_ID_P_EJ2MM PRIMARY key (image_id);
|
||||
|
||||
alter table forum_post_images add
|
||||
constraint FORU_POS_IMAGE_IMAG_ID_F_WYRXA foreign key (image_id)
|
||||
references cms_images(image_id);
|
||||
|
||||
alter table forum_post_images add
|
||||
constraint FORU_POS_IMAGE_POST_ID_F_1HH02 foreign key (post_id)
|
||||
references forum_posts(post_id);
|
||||
|
||||
|
||||
alter table forum_forums add image_uploads_allowed BOOLEAN NOT NULL;
|
||||
|
||||
update forum_forums set image_uploads_allowed = FALSE;
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
insert into acs_privileges (privilege)
|
||||
values ('forum_read');
|
||||
|
||||
insert into acs_privileges (privilege)
|
||||
values ('forum_create_thread');
|
||||
|
||||
insert into acs_privileges (privilege)
|
||||
values ('forum_respond');
|
||||
|
||||
insert into acs_privilege_hierarchy (privilege, child_privilege)
|
||||
values ('forum_moderation', 'forum_create_thread');
|
||||
|
||||
insert into acs_privilege_hierarchy (privilege, child_privilege)
|
||||
values ('forum_create_thread', 'forum_respond');
|
||||
|
||||
insert into acs_privilege_hierarchy (privilege, child_privilege)
|
||||
values ('forum_respond', 'forum_read');
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
alter table forum_forums add subscribe_thread_starter BOOLEAN NOT NULL;
|
||||
|
||||
update forum_forums set subscribe_thread_starter = FALSE;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue