Weitere Korrekturen am Upgrades
git-svn-id: https://svn.libreccm.org/ccm/trunk@2413 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
3e274e637d
commit
6e49e34ae7
|
|
@ -24,12 +24,45 @@ UPDATE acs_objects
|
||||||
default_domain_class = 'com.arsdigita.cms.contenttypes.DecisionTree'
|
default_domain_class = 'com.arsdigita.cms.contenttypes.DecisionTree'
|
||||||
WHERE default_domain_class = 'com.arsdigita.camden.cms.contenttypes.DecisionTree';
|
WHERE default_domain_class = 'com.arsdigita.camden.cms.contenttypes.DecisionTree';
|
||||||
|
|
||||||
|
UPDATE acs_objects
|
||||||
|
SET object_type = 'com.arsdigita.cms.contenttypes.DecisionTreeOptionTarget',
|
||||||
|
default_domain_class = 'com.arsdigita.cms.contenttypes.DecisionTreeOptionTarget'
|
||||||
|
WHERE default_domain_class = 'com.arsdigita.camden.cms.contenttypes.OptionTarget';
|
||||||
|
|
||||||
|
UPDATE acs_objects
|
||||||
|
SET object_type = 'com.arsdigita.cms.contenttypes.DecisionTreeSection',
|
||||||
|
default_domain_class = 'com.arsdigita.cms.contenttypes.DecisionTreeSection'
|
||||||
|
WHERE default_domain_class = 'com.arsdigita.camden.cms.contenttypes.TreeSection';
|
||||||
|
|
||||||
|
UPDATE acs_objects
|
||||||
|
SET object_type = 'com.arsdigita.cms.contenttypes.DecisionTreeSectionOption',
|
||||||
|
default_domain_class = 'com.arsdigita.cms.contenttypes.DecisionTreeSectionOption'
|
||||||
|
WHERE default_domain_class = 'com.arsdigita.camden.cms.contenttypes.SectionOption';
|
||||||
|
|
||||||
--Adjust content type decisiontree in contenttype directory table
|
--Adjust content type decisiontree in contenttype directory table
|
||||||
UPDATE content_types
|
UPDATE content_types
|
||||||
SET object_type = 'com.arsdigita.cms.contenttypes.DecisionTree',
|
SET object_type = 'com.arsdigita.cms.contenttypes.DecisionTree',
|
||||||
classname = 'com.arsdigita.cms.contenttypes.DecisionTree'
|
classname = 'com.arsdigita.cms.contenttypes.DecisionTree'
|
||||||
WHERE object_type = 'com.arsdigita.camden.cms.contenttypes.DecisionTree' ;
|
WHERE object_type = 'com.arsdigita.camden.cms.contenttypes.DecisionTree' ;
|
||||||
|
|
||||||
|
UPDATE content_types
|
||||||
|
SET object_type = 'com.arsdigita.cms.contenttypes.DecisionTreeOptionTarget',
|
||||||
|
classname = 'com.arsdigita.cms.contenttypes.DecisionTree'
|
||||||
|
WHERE object_type = 'com.arsdigita.camden.cms.contenttypes.OptionTarget' ;
|
||||||
|
|
||||||
|
UPDATE content_types
|
||||||
|
SET object_type = 'com.arsdigita.cms.contenttypes.DecisionTreeOptionSection',
|
||||||
|
classname = 'com.arsdigita.cms.contenttypes.DecisionTree'
|
||||||
|
WHERE object_type = 'com.arsdigita.camden.cms.contenttypes.TreeSection' ;
|
||||||
|
|
||||||
|
UPDATE content_types
|
||||||
|
SET object_type = 'com.arsdigita.cms.contenttypes.DecisionTreeSectionOption',
|
||||||
|
classname = 'com.arsdigita.cms.contenttypes.DecisionTree'
|
||||||
|
WHERE object_type = 'com.arsdigita.camden.cms.contenttypes.OptionSection' ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--Adjust content type decisiontree in authoring_steps directory table
|
--Adjust content type decisiontree in authoring_steps directory table
|
||||||
UPDATE authoring_steps
|
UPDATE authoring_steps
|
||||||
SET component = 'com.arsdigita.cms.contenttypes.ui.DecisionTreePropertiesStep'
|
SET component = 'com.arsdigita.cms.contenttypes.ui.DecisionTreePropertiesStep'
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
<version from="1.0.3" to="6.6.0">
|
<version from="1.0.3" to="6.6.0">
|
||||||
<script sql="ccm-cms-types-decisiontree/upgrade/::database::-1.0.3-6.6.0.sql"/>
|
<script sql="ccm-cms-types-decisiontree/upgrade/::database::-1.0.3-6.6.0.sql"/>
|
||||||
<!-- (just for easy reference in copy'nd'past programming :-) )
|
|
||||||
<script class="com.arsdigita.cms.contenttypes.upgrade.CreateGenericContentTypes"/>
|
|
||||||
-->
|
|
||||||
</version>
|
</version>
|
||||||
|
|
||||||
</upgrade>
|
</upgrade>
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
<ccm:directories>
|
<ccm:directories>
|
||||||
<ccm:directory name="pdl"/>
|
<ccm:directory name="pdl"/>
|
||||||
|
<ccm:directory name="sql"/>
|
||||||
<ccm:directory name="src"/>
|
<ccm:directory name="src"/>
|
||||||
</ccm:directories>
|
</ccm:directories>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,22 @@ DELETE FROM init_requirements WHERE required_init = 'com.arsdigita.cms.contentty
|
||||||
OR init = 'com.arsdigita.cms.contenttypes.HTMLFormInitializer';
|
OR init = 'com.arsdigita.cms.contenttypes.HTMLFormInitializer';
|
||||||
DELETE FROM inits WHERE class_name = 'com.arsdigita.cms.contenttypes.HTMLFormInitializer';
|
DELETE FROM inits WHERE class_name = 'com.arsdigita.cms.contenttypes.HTMLFormInitializer';
|
||||||
|
|
||||||
INSERT INTO ct_articles (item_id, lead) VALUES (SELECT item_id, lead FROM ct_htmlform);
|
-- HTMLForm did not have its own table in APLAWS 1.0.4
|
||||||
|
-- INSERT INTO ct_articles (item_id, lead) SELECT item_id, lead FROM ct_htmlform;
|
||||||
|
DELETE FROM authoring_kit_step_map
|
||||||
|
WHERE kit_id = (SELECT kit_id
|
||||||
|
FROM authoring_kits
|
||||||
|
WHERE type_id = (SELECT type_id
|
||||||
|
FROM content_types
|
||||||
|
WHERE object_type = 'com.arsdigita.cms.contenttypes.HTMLForm'));
|
||||||
|
|
||||||
|
DELETE FROM authoring_steps WHERE component = 'com.arsdigita.cms.contenttypes.ui.HTMLFormPropertiesStep';
|
||||||
|
|
||||||
|
DELETE FROM authoring_kits
|
||||||
|
WHERE type_id = (SELECT type_id
|
||||||
|
FROM content_types
|
||||||
|
WHERE object_type = 'com.arsdigita.cms.contenttypes.HTMLForm');
|
||||||
|
|
||||||
UPDATE cms_items
|
UPDATE cms_items
|
||||||
SET type_id = (SELECT type_id FROM content_types WHERE object_type = 'com.arsdigita.cms.contenttypes.Article')
|
SET type_id = (SELECT type_id FROM content_types WHERE object_type = 'com.arsdigita.cms.contenttypes.Article')
|
||||||
WHERE type_id = (SELECT type_id FROM content_types WHERE object_type = 'com.arsdigita.cms.contenttypes.HTMLForm');
|
WHERE type_id = (SELECT type_id FROM content_types WHERE object_type = 'com.arsdigita.cms.contenttypes.HTMLForm');
|
||||||
|
|
@ -50,6 +65,10 @@ UPDATE vcx_tags
|
||||||
SET tagged_oid = REPLACE(tagged_oid,'com.arsdigita.cms.contenttypes.HTMLForm', 'com.arsdigita.cms.contenttypes.Article')
|
SET tagged_oid = REPLACE(tagged_oid,'com.arsdigita.cms.contenttypes.HTMLForm', 'com.arsdigita.cms.contenttypes.Article')
|
||||||
WHERE tagged_oid LIKE '%com.arsdigita.cms.contenttypes.HTMLForm%';
|
WHERE tagged_oid LIKE '%com.arsdigita.cms.contenttypes.HTMLForm%';
|
||||||
|
|
||||||
|
DELETE FROM content_section_type_map
|
||||||
|
WHERE type_id = (SELECT type_id
|
||||||
|
FROM content_types
|
||||||
|
WHERE object_type = 'com.arsdigita.cms.contenttypes.HTMLForm');
|
||||||
DELETE FROM content_types WHERE object_type = 'com.arsdigita.cms.contenttypes.HTMLForm';
|
DELETE FROM content_types WHERE object_type = 'com.arsdigita.cms.contenttypes.HTMLForm';
|
||||||
|
|
||||||
DROP TABLE IF EXISTS ct_htmlform;
|
DROP TABLE IF EXISTS ct_htmlform;
|
||||||
Loading…
Reference in New Issue