Various modifications on upgrade script to make them work with Oracle. In some cases there now distict scripts for Oracle and PostgreSQL.
git-svn-id: https://svn.libreccm.org/ccm/trunk@3030 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
191e09f3e1
commit
e21a158931
|
|
@ -69,32 +69,31 @@ update application_types
|
||||||
-- update atoz in acs_objects
|
-- update atoz in acs_objects
|
||||||
-- replace String london.atoz by atoz for all atoz.AtoZ*
|
-- replace String london.atoz by atoz for all atoz.AtoZ*
|
||||||
update acs_objects
|
update acs_objects
|
||||||
set (object_type,default_domain_class) =
|
set object_type = replace(object_type,'london.atoz', 'atoz'),
|
||||||
(replace(object_type,'london.atoz', 'atoz') ,
|
default_domain_class = replace(default_domain_class,'london.atoz', 'atoz')
|
||||||
replace(default_domain_class,'london.atoz', 'atoz') )
|
|
||||||
where object_type like '%london.atoz.AtoZ%' ;
|
where object_type like '%london.atoz.AtoZ%' ;
|
||||||
|
|
||||||
-- rename AtoZItemProvider to ItemProvider
|
-- rename AtoZItemProvider to ItemProvider
|
||||||
update acs_objects
|
update acs_objects
|
||||||
set (object_type,default_domain_class) =
|
set object_type = replace(object_type,'AtoZItemProvider', 'ItemProvider'),
|
||||||
(replace(object_type,'AtoZItemProvider', 'ItemProvider') ,
|
default_domain_class = replace(default_domain_class,'AtoZItemProvider', 'ItemProvider')
|
||||||
replace(default_domain_class,'AtoZItemProvider', 'ItemProvider') )
|
|
||||||
where object_type like '%AtoZItemProvider%' ;
|
where object_type like '%AtoZItemProvider%' ;
|
||||||
|
|
||||||
-- rename AtoZCategoryProvider to CategoryProvider
|
-- rename AtoZCategoryProvider to CategoryProvider
|
||||||
update acs_objects
|
update acs_objects
|
||||||
set (object_type,default_domain_class) =
|
set object_type = replace(object_type,'AtoZCategoryProvider', 'CategoryProvider'),
|
||||||
(replace(object_type,'AtoZCategoryProvider', 'CategoryProvider') ,
|
defualt_domain_class = replace(default_domain_class,'AtoZCategoryProvider', 'CategoryProvider')
|
||||||
replace(default_domain_class,'AtoZCategoryProvider', 'CategoryProvider') )
|
|
||||||
where object_type like '%AtoZCategoryProvider%' ;
|
where object_type like '%AtoZCategoryProvider%' ;
|
||||||
|
|
||||||
-- rename AtoZSiteProxyProvider to siteproxy.SiteProxyProvider
|
-- rename AtoZSiteProxyProvider to siteproxy.SiteProxyProvider
|
||||||
update acs_objects
|
update acs_objects
|
||||||
set (object_type,default_domain_class) =
|
set object_type = replace(object_type,'AtoZSiteProxyProvider', 'siteproxy.SiteProxyProvider'),
|
||||||
(replace(object_type,'AtoZSiteProxyProvider', 'siteproxy.SiteProxyProvider') ,
|
default_domain_class = replace(default_domain_class,'AtoZSiteProxyProvider', 'siteproxy.SiteProxyProvider')
|
||||||
replace(default_domain_class,'AtoZSiteProxyProvider', 'siteproxy.SiteProxyProvider') )
|
|
||||||
where object_type like '%AtoZSiteProxyProvider%' ;
|
where object_type like '%AtoZSiteProxyProvider%' ;
|
||||||
|
|
||||||
-- rename terms.DomainProvider to DomainProvider
|
-- rename terms.DomainProvider to DomainProvider
|
||||||
update acs_objects
|
update acs_objects
|
||||||
set (object_type,default_domain_class) =
|
set object_type = replace(object_type,'terms.DomainProvider', 'DomainProvider'),
|
||||||
(replace(object_type,'terms.DomainProvider', 'DomainProvider') ,
|
default_domain_class = replace(default_domain_class,'terms.DomainProvider', 'DomainProvider')
|
||||||
replace(default_domain_class,'terms.DomainProvider', 'DomainProvider') )
|
|
||||||
where object_type like '%atoz.terms.DomainProvider%' ;
|
where object_type like '%atoz.terms.DomainProvider%' ;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,4 @@
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- $Id$
|
||||||
|
|
||||||
@@ default/6.6.2-6.6.3/set_singleton.sql
|
@@ oracle-se/6.6.2-6.6.3/set_singleton.sql
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2013 Jens Pelzetter 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$
|
||||||
|
|
||||||
|
UPDATE application_types SET singleton_p = '0' WHERE object_type = 'com.arsdigita.atoz.AtoZ';
|
||||||
|
|
@ -19,6 +19,6 @@
|
||||||
|
|
||||||
begin;
|
begin;
|
||||||
|
|
||||||
\i default/6.6.2-6.6.3/set_singleton.sql
|
\i postgres/6.6.2-6.6.3/set_singleton.sql
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- $Id$
|
||||||
|
|
||||||
UPDATE application_types SET singleton_p = true WHERE object_type = 'com.arsdigita.ui.admin.Admin';
|
UPDATE application_types SET singleton_p = 1 WHERE object_type = 'com.arsdigita.ui.admin.Admin';
|
||||||
UPDATE application_types SET singleton_p = true WHERE object_type = 'com.arsdigita.ui.login.Login';
|
UPDATE application_types SET singleton_p = 1 WHERE object_type = 'com.arsdigita.ui.login.Login';
|
||||||
UPDATE application_types SET singleton_p = true WHERE object_type = 'com.arsdigita.ui.permissions.Permissions';
|
UPDATE application_types SET singleton_p = 1 WHERE object_type = 'com.arsdigita.ui.permissions.Permissions';
|
||||||
UPDATE application_types SET singleton_p = true WHERE object_type = 'com.arsdigita.webdevsupport.WebDevSupport';
|
UPDATE application_types SET singleton_p = 1 WHERE object_type = 'com.arsdigita.webdevsupport.WebDevSupport';
|
||||||
|
|
|
||||||
|
|
@ -20,4 +20,4 @@
|
||||||
PROMPT Red Hat Enterprise CORE 6.6.0 -> 6.6.1 Upgrade Script (Oracle)
|
PROMPT Red Hat Enterprise CORE 6.6.0 -> 6.6.1 Upgrade Script (Oracle)
|
||||||
|
|
||||||
@@ default/6.6.0-6.6.1/drop_tables_acs_stylesheets.sql
|
@@ default/6.6.0-6.6.1/drop_tables_acs_stylesheets.sql
|
||||||
@@ oracle-se/6.6.0-6.6.1/recreate_users_index.sql
|
-- not needed for oracle @@ oracle-se/6.6.0-6.6.1/recreate_users_index.sql
|
||||||
|
|
@ -21,5 +21,5 @@ PROMPT Red Hat Enterprise CORE 6.6.5 -> 6.6.6 Upgrade Script (Oracle)
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
||||||
@@ default/6.6.5-6.6.6/set_singleton.sql
|
@@ oracle-se/6.6.5-6.6.6/set_singleton.sql
|
||||||
@@ default/6.6.5-6.6.6/add_cat_visible.sql
|
@@ default/6.6.5-6.6.6/add_cat_visible.sql
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2013 Jens Pelzetter. 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$
|
||||||
|
|
||||||
|
UPDATE application_types SET singleton_p = '1' WHERE object_type = 'com.arsdigita.ui.admin.Admin';
|
||||||
|
UPDATE application_types SET singleton_p = '1' WHERE object_type = 'com.arsdigita.ui.login.Login';
|
||||||
|
UPDATE application_types SET singleton_p = '1' WHERE object_type = 'com.arsdigita.ui.permissions.Permissions';
|
||||||
|
UPDATE application_types SET singleton_p = '1' WHERE object_type = 'com.arsdigita.webdevsupport.WebDevSupport';
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
begin;
|
begin;
|
||||||
|
|
||||||
\i default/6.6.5-6.6.6/set_singleton.sql
|
\i postgres/6.6.5-6.6.6/set_singleton.sql
|
||||||
\i default/6.6.5-6.6.6/add_cat_visible.sql
|
\i default/6.6.5-6.6.6/add_cat_visible.sql
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2013 Jens Pelzetter. 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$
|
||||||
|
|
||||||
|
UPDATE application_types SET singleton_p = true WHERE object_type = 'com.arsdigita.ui.admin.Admin';
|
||||||
|
UPDATE application_types SET singleton_p = true WHERE object_type = 'com.arsdigita.ui.login.Login';
|
||||||
|
UPDATE application_types SET singleton_p = true WHERE object_type = 'com.arsdigita.ui.permissions.Permissions';
|
||||||
|
UPDATE application_types SET singleton_p = true WHERE object_type = 'com.arsdigita.webdevsupport.WebDevSupport';
|
||||||
|
|
@ -31,8 +31,7 @@ import java.util.Properties;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A collection of static utility methods for dealing with JDBC
|
* A collection of static utility methods for dealing with JDBC connections.
|
||||||
* connections.
|
|
||||||
*
|
*
|
||||||
* @author Justin Ross
|
* @author Justin Ross
|
||||||
*/
|
*/
|
||||||
|
|
@ -41,9 +40,8 @@ public final class Connections {
|
||||||
private static final Logger s_log = Logger.getLogger(Connections.class);
|
private static final Logger s_log = Logger.getLogger(Connections.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Acquires a single connection using <code>url</code>. This
|
* Acquires a single connection using <code>url</code>. This method takes care of loading the
|
||||||
* method takes care of loading the appropriate driver and turning
|
* appropriate driver and turning auto-commit off.
|
||||||
* auto-commit off.
|
|
||||||
*
|
*
|
||||||
* @param url A <code>String</code> JDBC URL
|
* @param url A <code>String</code> JDBC URL
|
||||||
*/
|
*/
|
||||||
|
|
@ -63,7 +61,10 @@ public final class Connections {
|
||||||
}
|
}
|
||||||
|
|
||||||
Properties props = new Properties();
|
Properties props = new Properties();
|
||||||
|
|
||||||
|
if (database == DbHelper.DB_POSTGRES) {
|
||||||
props.setProperty("stringtype", "unspecified");
|
props.setProperty("stringtype", "unspecified");
|
||||||
|
}
|
||||||
|
|
||||||
final Connection conn = DriverManager.getConnection(url, props);
|
final Connection conn = DriverManager.getConnection(url, props);
|
||||||
|
|
||||||
|
|
@ -92,12 +93,10 @@ public final class Connections {
|
||||||
DatabaseMetaData meta = conn.getMetaData();
|
DatabaseMetaData meta = conn.getMetaData();
|
||||||
String product = meta.getDatabaseProductName();
|
String product = meta.getDatabaseProductName();
|
||||||
String version = meta.getDatabaseProductVersion();
|
String version = meta.getDatabaseProductVersion();
|
||||||
if ("Oracle".equals(product) &&
|
if ("Oracle".equals(product) && (version.indexOf("9.0.1") != -1 || version.indexOf(
|
||||||
(version.indexOf("9.0.1") != -1 ||
|
"9.2.0.1.0") != -1)) {
|
||||||
version.indexOf("9.2.0.1.0") != -1)) {
|
|
||||||
final Statement stmt = conn.createStatement();
|
final Statement stmt = conn.createStatement();
|
||||||
stmt.execute
|
stmt.execute("alter session set \"_push_join_union_view\" = false");
|
||||||
("alter session set \"_push_join_union_view\" = false");
|
|
||||||
stmt.close();
|
stmt.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -106,4 +105,5 @@ public final class Connections {
|
||||||
throw new UncheckedWrapperException(e);
|
throw new UncheckedWrapperException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,4 @@
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- $Id$
|
||||||
|
|
||||||
@@ default/6.6.1-6.6.2/set_singleton.sql
|
@@ oracle-se/6.6.1-6.6.2/set_singleton.sql
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2013 Jens Pelzetter 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$
|
||||||
|
|
||||||
|
UPDATE application_types SET singleton_p = '1' WHERE object_type = 'com.arsdigita.london.search.Search';
|
||||||
|
|
@ -21,6 +21,6 @@
|
||||||
|
|
||||||
begin;
|
begin;
|
||||||
|
|
||||||
\i default/6.6.1-6.6.2/set_singleton.sql
|
\i postgres/6.6.1-6.6.2/set_singleton.sql
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2013 Jens Pelzetter 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$
|
||||||
|
|
||||||
|
UPDATE application_types SET singleton_p = '1' WHERE object_type = 'com.arsdigita.london.terms.Terms';
|
||||||
|
|
@ -19,4 +19,4 @@
|
||||||
|
|
||||||
PROMPT Red Hat Enterprise TERMS 6.6.2 -> 6.6.3 Upgrade Script (Oracle)
|
PROMPT Red Hat Enterprise TERMS 6.6.2 -> 6.6.3 Upgrade Script (Oracle)
|
||||||
|
|
||||||
@@ ../default/upgrade/6.6.2-6.6.3/set_singleton.sql
|
@@ ../oracle-se/upgrade/6.6.2-6.6.3/set_singleton.sql
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,6 @@
|
||||||
|
|
||||||
begin;
|
begin;
|
||||||
|
|
||||||
\i ../default/upgrade/6.6.2-6.6.3/set_singleton.sql
|
\i ../postgres/upgrade/6.6.2-6.6.3/set_singleton.sql
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ ALTER TABLE pw_workspace_themes
|
||||||
ALTER TABLE pw_workspaces
|
ALTER TABLE pw_workspaces
|
||||||
ADD CONSTRAINT pw_workspac_workspa_id_p_knd54 PRIMARY KEY (workspace_id);
|
ADD CONSTRAINT pw_workspac_workspa_id_p_knd54 PRIMARY KEY (workspace_id);
|
||||||
|
|
||||||
CREATE INDEX pw_workspaces_party_id_idx ON pw_workspaces USING btree (party_id);
|
CREATE INDEX pw_workspaces_party_id_idx ON pw_workspaces(party_id);
|
||||||
|
|
||||||
ALTER TABLE pw_workspace_themeapplications
|
ALTER TABLE pw_workspace_themeapplications
|
||||||
ADD CONSTRAINT pw_wor_them_the_app_id_f_p_hb1 FOREIGN KEY (theme_app_id)
|
ADD CONSTRAINT pw_wor_them_the_app_id_f_p_hb1 FOREIGN KEY (theme_app_id)
|
||||||
|
|
|
||||||
|
|
@ -44,23 +44,22 @@ ALTER TABLE init_requirements
|
||||||
REFERENCES inits (class_name);
|
REFERENCES inits (class_name);
|
||||||
|
|
||||||
|
|
||||||
update application_types
|
UPDATE application_types
|
||||||
set object_type=replace(object_type,'london.portal', 'portalworkspace')
|
SET object_type = REPLACE(object_type,'london.portal', 'portalworkspace')
|
||||||
where object_type like '%london.portal%' ;
|
WHERE object_type LIKE '%london.portal%' ;
|
||||||
|
|
||||||
-- table applications doesn't require an update
|
-- table applications doesn't require an update
|
||||||
|
|
||||||
update apm_package_types
|
UPDATE apm_package_types
|
||||||
set package_key=replace(package_key,'workspace', 'portalworkspace')
|
SET package_key = REPLACE(package_key,'workspace', 'portalworkspace')
|
||||||
where package_key like 'workspace' ;
|
WHERE package_key LIKE 'workspace' ;
|
||||||
|
|
||||||
-- table apm_packages doesn't require an update either
|
-- table apm_packages doesn't require an update either
|
||||||
-- table site_nodes doesn't require an update either
|
-- table site_nodes doesn't require an update either
|
||||||
|
|
||||||
|
|
||||||
-- update application type in acs_objects
|
-- update application type in acs_objects
|
||||||
update acs_objects
|
UPDATE acs_objects
|
||||||
set (object_type,default_domain_class) =
|
SET object_type = REPLACE(object_type,'london.portal', 'portalworkspace'),
|
||||||
(replace(object_type,'london.portal', 'portalworkspace') ,
|
default_domain_class = REPLACE(default_domain_class,'london.portal', 'portalworkspace')
|
||||||
replace(default_domain_class,'london.portal', 'portalworkspace') )
|
WHERE object_type LIKE '%london.portal%' ;
|
||||||
where object_type like '%london.portal%' ;
|
|
||||||
|
|
|
||||||
|
|
@ -28,3 +28,5 @@
|
||||||
@@ default/6.6.0-6.6.1/add_constraints.sql
|
@@ default/6.6.0-6.6.1/add_constraints.sql
|
||||||
|
|
||||||
@@ default/6.6.0-6.6.1/upd_system_tables.sql
|
@@ default/6.6.0-6.6.1/upd_system_tables.sql
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ ALTER TABLE init_requirements
|
||||||
|
|
||||||
|
|
||||||
UPDATE application_types
|
UPDATE application_types
|
||||||
SET object_type = REPLACE(object_type,'london.rss.RSS', 'rssfeed.RSSFeed',
|
SET object_type = REPLACE(object_type,'london.rss.RSS', 'rssfeed.RSSFeed'),
|
||||||
title = 'RSS Feed',
|
title = 'RSS Feed',
|
||||||
description = 'Provides RSS feed service'
|
description = 'Provides RSS feed service'
|
||||||
WHERE object_type LIKE '%london.rss.RSS%';
|
WHERE object_type LIKE '%london.rss.RSS%';
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,4 @@
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- $Id$
|
||||||
|
|
||||||
@@ default/6.6.1-6.6.2/set_singleton.sql
|
@@ oracle-se/6.6.1-6.6.2/set_singleton.sql
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2013 Jens Pelzetter 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$
|
||||||
|
|
||||||
|
UPDATE application_types SET singleton_p = '1' WHERE object_type = 'com.arsdigita.rssfeed.RSSFeed';
|
||||||
|
|
@ -21,6 +21,6 @@
|
||||||
|
|
||||||
begin;
|
begin;
|
||||||
|
|
||||||
\i default/6.6.1-6.6.2/set_singleton.sql
|
\i postgres/6.6.1-6.6.2/set_singleton.sql
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ delete from site_nodes
|
||||||
where object_type
|
where object_type
|
||||||
like '%shortcuts.Shortcuts%')
|
like '%shortcuts.Shortcuts%')
|
||||||
);
|
);
|
||||||
|
|
||||||
alter table site_nodes add constraint site_nodes_node_id_f_n1m2y
|
alter table site_nodes add constraint site_nodes_node_id_f_n1m2y
|
||||||
FOREIGN KEY (node_id)
|
FOREIGN KEY (node_id)
|
||||||
REFERENCES acs_objects (object_id);
|
REFERENCES acs_objects (object_id);
|
||||||
|
|
@ -71,7 +72,9 @@ delete from object_context
|
||||||
|
|
||||||
-- delete from acs_objects all entries referring to package_id in apm_packages
|
-- delete from acs_objects all entries referring to package_id in apm_packages
|
||||||
alter table apm_packages drop constraint apm_package_package_id_f_46may ;
|
alter table apm_packages drop constraint apm_package_package_id_f_46may ;
|
||||||
|
|
||||||
alter table applications drop constraint application_package_id_f_cdaho ;
|
alter table applications drop constraint application_package_id_f_cdaho ;
|
||||||
|
|
||||||
delete from acs_objects
|
delete from acs_objects
|
||||||
where object_id in
|
where object_id in
|
||||||
(select package_id from apm_packages where package_type_id =
|
(select package_id from apm_packages where package_type_id =
|
||||||
|
|
@ -94,6 +97,7 @@ delete from apm_packages
|
||||||
-- delete all entries for subsite in apm_package_types identified by
|
-- delete all entries for subsite in apm_package_types identified by
|
||||||
-- package_type_id in application_types
|
-- package_type_id in application_types
|
||||||
alter table application_types drop constraint applica_typ_pac_typ_id_f_v80ma ;
|
alter table application_types drop constraint applica_typ_pac_typ_id_f_v80ma ;
|
||||||
|
|
||||||
delete from apm_package_types
|
delete from apm_package_types
|
||||||
where package_type_id =
|
where package_type_id =
|
||||||
(select package_type_id from application_types
|
(select package_type_id from application_types
|
||||||
|
|
@ -119,9 +123,11 @@ update application_types
|
||||||
alter table application_types add constraint applica_typ_pac_typ_id_f_v80ma
|
alter table application_types add constraint applica_typ_pac_typ_id_f_v80ma
|
||||||
FOREIGN KEY (package_type_id)
|
FOREIGN KEY (package_type_id)
|
||||||
REFERENCES apm_package_types (package_type_id);
|
REFERENCES apm_package_types (package_type_id);
|
||||||
|
|
||||||
alter table applications add constraint application_package_id_f_cdaho
|
alter table applications add constraint application_package_id_f_cdaho
|
||||||
FOREIGN KEY (package_id)
|
FOREIGN KEY (package_id)
|
||||||
REFERENCES apm_packages (package_id);
|
REFERENCES apm_packages (package_id);
|
||||||
|
|
||||||
alter table apm_packages add constraint apm_package_package_id_f_46may
|
alter table apm_packages add constraint apm_package_package_id_f_46may
|
||||||
FOREIGN KEY (package_id)
|
FOREIGN KEY (package_id)
|
||||||
REFERENCES acs_objects (object_id);
|
REFERENCES acs_objects (object_id);
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,6 @@ update application_types
|
||||||
|
|
||||||
-- update application type in acs_objects
|
-- update application type in acs_objects
|
||||||
update acs_objects
|
update acs_objects
|
||||||
set (object_type,default_domain_class) =
|
set object_type = replace(object_type,'london.shortcuts', 'shortcuts'),
|
||||||
(replace(object_type,'london.shortcuts', 'shortcuts') ,
|
default_domain_class = replace(default_domain_class,'london.shortcuts', 'shortcuts')
|
||||||
replace(default_domain_class,'london.shortcuts', 'shortcuts') )
|
|
||||||
where object_type like '%london.shortcuts%' ;
|
where object_type like '%london.shortcuts%' ;
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,4 @@
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- $Id$
|
||||||
|
|
||||||
@@ default/6.6.1-6.6.2/set_singleton.sql
|
@@ oracle-se/6.6.1-6.6.2/set_singleton.sql
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2013 Jens Pelzetter 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$
|
||||||
|
|
||||||
|
UPDATE application_types
|
||||||
|
SET singleton_p = '1'
|
||||||
|
WHERE object_type = 'com.arsdigita.shortcuts.Shortcuts';
|
||||||
|
|
@ -21,6 +21,6 @@
|
||||||
|
|
||||||
begin;
|
begin;
|
||||||
|
|
||||||
\i default/6.6.1-6.6.2/set_singleton.sql
|
\i postgres/6.6.1-6.6.2/set_singleton.sql
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@ update application_types
|
||||||
|
|
||||||
-- update application type in acs_objects
|
-- update application type in acs_objects
|
||||||
update acs_objects
|
update acs_objects
|
||||||
set (object_type,default_domain_class) =
|
set object_type = replace(object_type,'london.subsite', 'subsite'),
|
||||||
(replace(object_type,'london.subsite', 'subsite') ,
|
default_domain_class = replace(default_domain_class,'london.subsite', 'subsite')
|
||||||
replace(default_domain_class,'london.subsite', 'subsite') )
|
|
||||||
where object_type like '%london.subsite%' ;
|
where object_type like '%london.subsite%' ;
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,4 @@
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- $Id$
|
||||||
|
|
||||||
@@ default/6.6.1-6.6.2/set_singleton.sql
|
@@ oracle/6.6.1-6.6.2/set_singleton.sql
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2013 Jens Pelzetter 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$
|
||||||
|
|
||||||
|
UPDATE application_types SET singleton_p = '1'
|
||||||
|
WHERE object_type = 'com.arsdigita.subsite.Subsite';
|
||||||
|
|
@ -21,6 +21,6 @@
|
||||||
|
|
||||||
begin;
|
begin;
|
||||||
|
|
||||||
\i default/6.6.1-6.6.2/set_singleton.sql
|
\i postgres/6.6.1-6.6.2/set_singleton.sql
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
||||||
|
|
@ -56,10 +56,9 @@ update applications
|
||||||
|
|
||||||
-- update application type in acs_objects
|
-- update application type in acs_objects
|
||||||
update acs_objects
|
update acs_objects
|
||||||
set (object_type,display_name,default_domain_class) =
|
set object_type = 'com.arsdigita.themedirector.ThemeDirector',
|
||||||
('com.arsdigita.themedirector.ThemeDirector' ,
|
display_name = 'CCM Themes Administration',
|
||||||
'CCM Themes Administration',
|
default_domain_class = 'com.arsdigita.themedirector.ThemeDirector'
|
||||||
'com.arsdigita.themedirector.ThemeDirector' )
|
|
||||||
where default_domain_class like 'com.arsdigita.london.theme.ThemeApplication' ;
|
where default_domain_class like 'com.arsdigita.london.theme.ThemeApplication' ;
|
||||||
|
|
||||||
-- update themes in acs_objects
|
-- update themes in acs_objects
|
||||||
|
|
@ -68,7 +67,6 @@ update acs_objects
|
||||||
where default_domain_class like 'com.arsdigita.london.theme.Theme' ;
|
where default_domain_class like 'com.arsdigita.london.theme.Theme' ;
|
||||||
|
|
||||||
update acs_objects
|
update acs_objects
|
||||||
set (object_type,default_domain_class) =
|
set object_type = 'com.arsdigita.themedirector.Theme',
|
||||||
('com.arsdigita.themedirector.Theme' ,
|
default_domain_class = 'com.arsdigita.themedirector.Theme'
|
||||||
'com.arsdigita.themedirector.Theme' )
|
|
||||||
where default_domain_class like 'com.arsdigita.london.theme.Theme';
|
where default_domain_class like 'com.arsdigita.london.theme.Theme';
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,4 @@
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- $Id$
|
||||||
|
|
||||||
@@ default/6.6.2-6.6.3/set_singleton.sql
|
@@ oracle-se/6.6.2-6.6.3/set_singleton.sql
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2013 Jens Pelzetter 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$
|
||||||
|
|
||||||
|
UPDATE application_types SET singleton_p = '1'
|
||||||
|
WHERE object_type = 'com.arsdigita.themedirector.ThemeDirector';
|
||||||
|
|
@ -21,6 +21,6 @@
|
||||||
|
|
||||||
begin;
|
begin;
|
||||||
|
|
||||||
\i default/6.6.2-6.6.3/set_singleton.sql
|
\i postgres/6.6.2-6.6.3/set_singleton.sql
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue