From 4d1900db5a8614b20e7a148735af27591b8055ee Mon Sep 17 00:00:00 2001 From: jensp Date: Fri, 5 Sep 2014 07:00:15 +0000 Subject: [PATCH] Added missing parts for the upgrade script for renaming ccm-cms-types-simpleorganization to ccm-cms-types-organization git-svn-id: https://svn.libreccm.org/ccm/trunk@2840 8810af33-2d31-482b-a856-94f89814c4df --- .../default/6.6.6-6.6.7/rename_simpleorga_to_orga.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ccm-cms-types-organization/sql/ccm-cms-types-organization/upgrade/default/6.6.6-6.6.7/rename_simpleorga_to_orga.sql b/ccm-cms-types-organization/sql/ccm-cms-types-organization/upgrade/default/6.6.6-6.6.7/rename_simpleorga_to_orga.sql index 35076cc9e..07a7e5051 100644 --- a/ccm-cms-types-organization/sql/ccm-cms-types-organization/upgrade/default/6.6.6-6.6.7/rename_simpleorga_to_orga.sql +++ b/ccm-cms-types-organization/sql/ccm-cms-types-organization/upgrade/default/6.6.6-6.6.7/rename_simpleorga_to_orga.sql @@ -20,6 +20,7 @@ -- Rename tables ALTER TABLE ct_simpleorganizations RENAME TO ct_organizations; +ALTER TABLE ct_simpleorganization_bundles RENAME TO ct_organization_bundles; -- Update inits @@ -56,6 +57,11 @@ UPDATE acs_objects default_domain_class = 'com.arsdigita.cms.contenttypes.Organization' WHERE default_domain_class = 'com.arsdigita.cms.contenttypes.SimpleOrganization'; +UPDATE acs_objects + SET object_type = 'com.arsdigita.cms.contenttypes.OrganizationBundle', + default_domain_class = 'com.arsdigita.cms.contenttypes.OrganizationBundle' + WHERE default_domain_class = 'com.arsdigita.cms.contenttypes.SimpleOrganizationBundle'; + --Adjust content type organization in contenttype directory table UPDATE content_types SET object_type = 'com.arsdigita.cms.contenttypes.Organization',