Verschiedene Korrekturen am Upgrades (Pfade, SQL-Befehle)
git-svn-id: https://svn.libreccm.org/ccm/trunk@2411 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
9233913002
commit
52d1d67e9c
|
|
@ -27,7 +27,7 @@
|
|||
-- Rename tables
|
||||
ALTER TABLE cam_decision_trees RENAME TO ct_decisiontrees;
|
||||
ALTER TABLE cam_tree_sections RENAME TO ct_decisiontree_sections;
|
||||
ALTER TABLE cam_section_options RENAME TO ct_decisiontree_section_options;cam_tre_section_tre_id_f_m_sh9
|
||||
ALTER TABLE cam_section_options RENAME TO ct_decisiontree_section_options;
|
||||
ALTER TABLE cam_option_targets RENAME TO ct_decisiontree_option_targets;
|
||||
|
||||
-- Rename constraints. Because it is not possible to rename constraints we drop the old ones
|
||||
|
|
|
|||
|
|
@ -17,6 +17,11 @@
|
|||
--
|
||||
-- $Id: upd_inits.sql $
|
||||
|
||||
-- Drop constraints for init_requirements temporaly (otherwise we can't update
|
||||
-- the tables)
|
||||
ALTER TABLE init_requirements DROP CONSTRAINT init_requirements_init_f_cmmdn ;
|
||||
ALTER TABLE init_requirements DROP CONSTRAINT init_require_requ_init_f_i6rgg ;
|
||||
|
||||
-- Adjust the class name of the Initializer
|
||||
UPDATE inits
|
||||
SET class_name='com.arsdigita.cms.contenttypes.DecisionTreeInitializer'
|
||||
|
|
@ -26,3 +31,13 @@ UPDATE inits
|
|||
UPDATE init_requirements
|
||||
SET init='com.arsdigita.cms.contenttypes.DecisionTreeInitializer'
|
||||
WHERE init='com.arsdigita.camden.cms.contenttypes.DecisionTreeInitializer';
|
||||
|
||||
-- Restore the constraints for init_requirements
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
--
|
||||
-- Copyright (C) 2013 Peter Boy. All Rights Reserved.
|
||||
-- Copyright (C) 2013 Jens . 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
|
||||
|
|
@ -18,20 +19,30 @@
|
|||
-- $Id: upd_acs_objects.sql $
|
||||
|
||||
-- Adjust the class name in acs-objects for all DecisionTree instances
|
||||
update acs_objects
|
||||
set (object_type,default_domain_class) =
|
||||
('com.arsdigita.cms.contenttypes.DecisionTree' ,
|
||||
'com.arsdigita.cms.contenttypes.DecisionTree' )
|
||||
where default_domain_class
|
||||
like 'com.arsdigita.camden.cms.contenttypes.DecisionTree' ;
|
||||
UPDATE acs_objects
|
||||
SET object_type = 'com.arsdigita.cms.contenttypes.DecisionTree',
|
||||
default_domain_class = 'com.arsdigita.cms.contenttypes.DecisionTree'
|
||||
WHERE default_domain_class = 'com.arsdigita.camden.cms.contenttypes.DecisionTree' ;
|
||||
|
||||
--Adjust content type decisiontree in contenttype directory table
|
||||
update content_types
|
||||
set (object_type,classname) =
|
||||
('com.arsdigita.cms.contenttypes.DecisionTree' ,
|
||||
'com.arsdigita.cms.contenttypes.DecisionTree' )
|
||||
where object_type
|
||||
like 'com.arsdigita.camden.cms.contenttypes.DecisionTree' ;
|
||||
UPDATE content_types
|
||||
SET object_type = 'com.arsdigita.cms.contenttypes.DecisionTree',
|
||||
classname = 'com.arsdigita.cms.contenttypes.DecisionTree'
|
||||
WHERE object_type = 'com.arsdigita.camden.cms.contenttypes.DecisionTree' ;
|
||||
|
||||
--Adjust content type decisiontree in authoring_steps directory table
|
||||
update authoring_steps
|
||||
UPDATE authoring_steps
|
||||
SET component = 'com.arsdigita.cms.contenttypes.ui.DecisionTreePropertiesStep'
|
||||
WHERE component = 'com.arsdigita.camden.cms.contenttypes.ui.DecisionTreePropertiesStep';
|
||||
|
||||
UPDATE authoring_steps
|
||||
SET component = 'com.arsdigita.cms.contenttypes.ui.DecisionTreeSectionStep'
|
||||
WHERE component = 'com.arsdigita.camden.cms.contenttypes.ui.DecisionTreeViewSections';
|
||||
|
||||
UPDATE authoring_steps
|
||||
SET component = 'com.arsdigita.cms.contenttypes.ui.DecisionTreeOptionStep'
|
||||
WHERE component = 'com.arsdigita.camden.cms.contenttypes.ui.DecisionTreeViewOptions';
|
||||
|
||||
UPDATE authoring_steps
|
||||
SET component = 'com.arsdigita.cms.contenttypes.ui.DecisionTreeTargetStep'
|
||||
WHERE component = 'com.arsdigita.camden.cms.contenttypes.ui.DecisionTreeViewTargets';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
alter table forum_forums add anonymous_posts_allowed BOOLEAN NOT NULL;
|
||||
alter table forum_forums add anonymous_posts_allowed BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
|
||||
update forum_forums set anonymous_posts_allowed = FALSE;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ alter table forum_post_files add
|
|||
|
||||
|
||||
|
||||
alter table forum_forums add file_attachments_allowed BOOLEAN NOT NULL;
|
||||
alter table forum_forums add file_attachments_allowed BOOLEAN NOT NULL DEFAULT TRUE;
|
||||
|
||||
update forum_forums set file_attachments_allowed = TRUE;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
alter table forum_forums add no_category_posts_allowed BOOLEAN NOT NULL;
|
||||
alter table forum_forums add no_category_posts_allowed BOOLEAN NOT NULL DEFAULT TRUE;
|
||||
|
||||
update forum_forums set no_category_posts_allowed = TRUE;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ alter table forum_post_images add
|
|||
references forum_posts(post_id);
|
||||
|
||||
|
||||
alter table forum_forums add image_uploads_allowed BOOLEAN NOT NULL;
|
||||
alter table forum_forums add image_uploads_allowed BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
|
||||
update forum_forums set image_uploads_allowed = FALSE;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
alter table forum_forums add subscribe_thread_starter BOOLEAN NOT NULL;
|
||||
alter table forum_forums add subscribe_thread_starter BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
|
||||
update forum_forums set subscribe_thread_starter = FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue