Nachtrag Upgrade Script zu ccm-ldn-types-esdservice.

git-svn-id: https://svn.libreccm.org/ccm/trunk@1640 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2012-05-04 11:36:53 +00:00
parent 57e1df88be
commit c4605f82fa
5 changed files with 182 additions and 3 deletions

View File

@ -0,0 +1,41 @@
--
-- Copyright (C) 2012 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: ren_esdservice_table.sql pboy $
-- rename ct_esdservice table to ct_ldn_esdservice table following
-- ccm naming conventions to make maintenance tasks easier
-- if we could figure out the old names we could rename constraints too
-- alter table ct_esdservice drop constraint ... ;
-- alter table ct_esdservice drop constraint ... ;
-- alter table ct_esdservice drop constraint ... ;
alter table ct_esdservice RENAME TO ct_ldn_esdservice ;
-- alter table ct_ldn_esdservice
-- add constraint ct_ldn_esdserv_serv_id_p_5dac0 PRIMARY KEY(service_id);
-- alter table ct_ldn_esdservice
-- add constraint ct_ldn_esdserv_cont_id_f_r4d1z FOREIGN KEY (contact_id)
-- references ct_ldn_contacts (contact_id) MATCH SIMPLE
-- ON UPDATE NO ACTION ON DELETE NO ACTION;
-- alter table ct_ldn_esdservice
-- add constraint ct_ldn_esdserv_serv_id_f_tfkqn FOREIGN KEY (service_id)
-- references cms_articles (article_id) MATCH SIMPLE
-- ON UPDATE NO ACTION ON DELETE NO ACTION;

View File

@ -0,0 +1,90 @@
--
-- Copyright (C) 2012 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_system_tables.sql pboy $
-- rename ccm-cms-types-contact to ccm-ldn-types-contact
-- adjust various system tables to the new name of content type
alter table init_requirements drop constraint init_requirements_init_f_cmmdn ;
alter table init_requirements drop constraint init_require_requ_init_f_i6rgg ;
update inits
set class_name='com.arsdigita.london.contenttypes.ESDServiceInitializer'
where class_name='com.arsdigita.cms.contenttypes.ESDServiceInitializer' ;
update init_requirements
set init='com.arsdigita.london.contenttypes.ESDServiceInitializer'
where init='com.arsdigita.cms.contenttypes.ESDServiceInitializer' ;
ALTER TABLE init_requirements
ADD CONSTRAINT init_requirements_init_f_cmmdn FOREIGN KEY (init)
REFERENCES inits (class_name) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION;
ALTER TABLE init_requirements
ADD CONSTRAINT init_require_requ_init_f_i6rgg FOREIGN KEY (required_init)
REFERENCES inits (class_name) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION;
update content_types
set object_type='com.arsdigita.london.contenttypes.ESDService',
label='ESD Service',
description='An ESDService',
classname='com.arsdigita.london.contenttypes.ESDService'
where classname='com.arsdigita.cms.contenttypes.ESDService' ;
update authoring_steps
set label_key='ESD Service Properties',
label_bundle='com.arsdigita.london.contenttypes.ESDServiceResources',
description_key='Edit the basic ESDService properties',
description_bundle='com.arsdigita.london.contenttypes.ESDServiceResources',
component='com.arsdigita.london.contenttypes.ui.ESDServicePropertiesStep'
where component='com.arsdigita.cms.contenttypes.ui.ESDServicePropertiesStep' ;
update authoring_steps
set label_key='ESD Service Contact',
label_bundle='com.arsdigita.london.contenttypes.ESDServiceResources',
description_key='Edit/Choose the associated Contact object',
description_bundle='com.arsdigita.london.contenttypes.ESDServiceResources',
component='com.arsdigita.london.contenttypes.ui.ESDServiceChooseContactStep'
where component='com.arsdigita.cms.contenttypes.ui.ESDServiceChooseContactStep' ;
update acs_objects
set (object_type,default_domain_class) =
('com.arsdigita.london.contenttypes.ESDService' ,
'com.arsdigita.london.contenttypes.ESDService' )
where default_domain_class like 'com.arsdigita.cms.contenttypes.ESDService' ;
update lucene_docs
set type='com.arsdigita.london.contenttypes.ESDService'
where type='com.arsdigita.cms.contenttypes.ESDService' ;
update vcx_generic_operations
set value=replace(value,'cms.contenttypes.ESDService', 'london.contenttypes.ESDService')
where value like '%cms.contenttypes.ESDService%';
update vcx_obj_changes
set obj_id=replace(obj_id,'cms.contenttypes.ESDService', 'london.contenttypes.ESDService')
where obj_id like '%cms.contenttypes.ESDService%';
update vcx_tags
set tagged_oid=replace(tagged_oid,'cms.contenttypes.ESDService', 'london.contenttypes.ESDService')
where tagged_oid like '%cms.contenttypes.ESDService%';

View File

@ -0,0 +1,21 @@
--
-- Copyright (C) 2012 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.0-6.6.1.sql pboy $
@@ default/6.6.0-6.6.1/ren_esdservice_table.sql
@@ default/6.6.0-6.6.1/upd_system_tables.sql

View File

@ -0,0 +1,27 @@
--
-- Copyright (C) 2012 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: postgres-6.6.0-6.6.1.sql pboy $
\echo APLAWS ldn esdservice 6.6.0 -> 6.6.1 Upgrade Script (PostgreSQL)
begin;
\i default/6.6.0-6.6.1/ren_esdservice_table.sql
\i default/6.6.0-6.6.1/upd_system_tables.sql
commit;

View File

@ -18,7 +18,7 @@
<ctd:include href="/WEB-INF/content-types/edit-body-text-step.xml"/> <ctd:include href="/WEB-INF/content-types/edit-body-text-step.xml"/>
<ctd:authoring-step <ctd:authoring-step
label="Service Contact" label="ESD Service Contact"
description="Edit/Choose the associated Contact object" description="Edit/Choose the associated Contact object"
component="com.arsdigita.london.contenttypes.ui.ESDServiceChooseContactStep"/> component="com.arsdigita.london.contenttypes.ui.ESDServiceChooseContactStep"/>