Kleinere Überarbeitungen der Upgrade-Scripts für ccm-ldn-types-esdservice 6.6.0 auf 6.6.1, primär Formatierungen
git-svn-id: https://svn.libreccm.org/ccm/trunk@2395 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
66758056a2
commit
32dfe9106d
|
|
@ -26,7 +26,7 @@
|
||||||
-- alter table ct_esdservice drop constraint ... ;
|
-- 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_esdservice RENAME TO ct_ldn_esdservice ;
|
||||||
|
|
||||||
-- alter table ct_ldn_esdservice
|
-- alter table ct_ldn_esdservice
|
||||||
-- add constraint ct_ldn_esdserv_serv_id_p_5dac0 PRIMARY KEY(service_id);
|
-- add constraint ct_ldn_esdserv_serv_id_p_5dac0 PRIMARY KEY(service_id);
|
||||||
|
|
@ -1,90 +0,0 @@
|
||||||
--
|
|
||||||
-- 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%';
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,89 @@
|
||||||
|
--
|
||||||
|
-- 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 = '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%';
|
||||||
|
|
||||||
|
|
@ -17,5 +17,5 @@
|
||||||
--
|
--
|
||||||
-- $Id: oracle-se-6.6.0-6.6.1.sql pboy $
|
-- $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/rename_esdservice_table.sql
|
||||||
@@ default/6.6.0-6.6.1/upd_system_tables.sql
|
@@ default/6.6.0-6.6.1/update_system_tables.sql
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
begin;
|
begin;
|
||||||
|
|
||||||
\i default/6.6.0-6.6.1/ren_esdservice_table.sql
|
\i default/6.6.0-6.6.1/rename_esdservice_table.sql
|
||||||
\i default/6.6.0-6.6.1/upd_system_tables.sql
|
\i default/6.6.0-6.6.1/update_system_tables.sql
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue