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
|
|
@ -44,7 +44,7 @@ ALTER TABLE init_requirements
|
|||
|
||||
|
||||
update application_types
|
||||
set object_type=replace(object_type,'london.atoz.AtoZ','atoz.AtoZ')
|
||||
set object_type = replace(object_type,'london.atoz.AtoZ','atoz.AtoZ')
|
||||
where object_type like '%london.atoz.AtoZ%' ;
|
||||
|
||||
-- table applications doesn't require an update
|
||||
|
|
@ -69,32 +69,31 @@ update application_types
|
|||
-- update atoz in acs_objects
|
||||
-- replace String london.atoz by atoz for all atoz.AtoZ*
|
||||
update acs_objects
|
||||
set (object_type,default_domain_class) =
|
||||
(replace(object_type,'london.atoz', 'atoz') ,
|
||||
replace(default_domain_class,'london.atoz', 'atoz') )
|
||||
set object_type = replace(object_type,'london.atoz', 'atoz'),
|
||||
default_domain_class = replace(default_domain_class,'london.atoz', 'atoz')
|
||||
where object_type like '%london.atoz.AtoZ%' ;
|
||||
|
||||
-- rename AtoZItemProvider to ItemProvider
|
||||
update acs_objects
|
||||
set (object_type,default_domain_class) =
|
||||
(replace(object_type,'AtoZItemProvider', 'ItemProvider') ,
|
||||
replace(default_domain_class,'AtoZItemProvider', 'ItemProvider') )
|
||||
set object_type = replace(object_type,'AtoZItemProvider', 'ItemProvider'),
|
||||
default_domain_class = replace(default_domain_class,'AtoZItemProvider', 'ItemProvider')
|
||||
where object_type like '%AtoZItemProvider%' ;
|
||||
|
||||
-- rename AtoZCategoryProvider to CategoryProvider
|
||||
update acs_objects
|
||||
set (object_type,default_domain_class) =
|
||||
(replace(object_type,'AtoZCategoryProvider', 'CategoryProvider') ,
|
||||
replace(default_domain_class,'AtoZCategoryProvider', 'CategoryProvider') )
|
||||
set object_type = replace(object_type,'AtoZCategoryProvider', 'CategoryProvider'),
|
||||
defualt_domain_class = replace(default_domain_class,'AtoZCategoryProvider', 'CategoryProvider')
|
||||
where object_type like '%AtoZCategoryProvider%' ;
|
||||
|
||||
-- rename AtoZSiteProxyProvider to siteproxy.SiteProxyProvider
|
||||
update acs_objects
|
||||
set (object_type,default_domain_class) =
|
||||
(replace(object_type,'AtoZSiteProxyProvider', 'siteproxy.SiteProxyProvider') ,
|
||||
replace(default_domain_class,'AtoZSiteProxyProvider', 'siteproxy.SiteProxyProvider') )
|
||||
set object_type = replace(object_type,'AtoZSiteProxyProvider', 'siteproxy.SiteProxyProvider'),
|
||||
default_domain_class = replace(default_domain_class,'AtoZSiteProxyProvider', 'siteproxy.SiteProxyProvider')
|
||||
where object_type like '%AtoZSiteProxyProvider%' ;
|
||||
|
||||
-- rename terms.DomainProvider to DomainProvider
|
||||
update acs_objects
|
||||
set (object_type,default_domain_class) =
|
||||
(replace(object_type,'terms.DomainProvider', 'DomainProvider') ,
|
||||
replace(default_domain_class,'terms.DomainProvider', 'DomainProvider') )
|
||||
set object_type = replace(object_type,'terms.DomainProvider', 'DomainProvider'),
|
||||
default_domain_class = replace(default_domain_class,'terms.DomainProvider', 'DomainProvider')
|
||||
where object_type like '%atoz.terms.DomainProvider%' ;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@
|
|||
--
|
||||
-- $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;
|
||||
|
||||
\i default/6.6.2-6.6.3/set_singleton.sql
|
||||
\i postgres/6.6.2-6.6.3/set_singleton.sql
|
||||
|
||||
commit;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
--
|
||||
-- $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';
|
||||
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';
|
||||
|
|
|
|||
|
|
@ -20,4 +20,4 @@
|
|||
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
|
||||
@@ 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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
\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
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* A collection of static utility methods for dealing with JDBC
|
||||
* connections.
|
||||
* A collection of static utility methods for dealing with JDBC connections.
|
||||
*
|
||||
* @author Justin Ross
|
||||
*/
|
||||
|
|
@ -41,9 +40,8 @@ public final class Connections {
|
|||
private static final Logger s_log = Logger.getLogger(Connections.class);
|
||||
|
||||
/**
|
||||
* Acquires a single connection using <code>url</code>. This
|
||||
* method takes care of loading the appropriate driver and turning
|
||||
* auto-commit off.
|
||||
* Acquires a single connection using <code>url</code>. This method takes care of loading the
|
||||
* appropriate driver and turning auto-commit off.
|
||||
*
|
||||
* @param url A <code>String</code> JDBC URL
|
||||
*/
|
||||
|
|
@ -63,7 +61,10 @@ public final class Connections {
|
|||
}
|
||||
|
||||
Properties props = new Properties();
|
||||
|
||||
if (database == DbHelper.DB_POSTGRES) {
|
||||
props.setProperty("stringtype", "unspecified");
|
||||
}
|
||||
|
||||
final Connection conn = DriverManager.getConnection(url, props);
|
||||
|
||||
|
|
@ -71,16 +72,16 @@ public final class Connections {
|
|||
|
||||
conn.setAutoCommit(false);
|
||||
|
||||
if(s_log.isDebugEnabled()) {
|
||||
if (s_log.isDebugEnabled()) {
|
||||
if (conn.getTransactionIsolation() == Connection.TRANSACTION_NONE) {
|
||||
s_log.debug("transactionIsoliation = NONE");
|
||||
} else if(conn.getTransactionIsolation() == Connection.TRANSACTION_READ_COMMITTED) {
|
||||
} else if (conn.getTransactionIsolation() == Connection.TRANSACTION_READ_COMMITTED) {
|
||||
s_log.debug("transactionIsoliation = READ_COMMITED");
|
||||
} else if(conn.getTransactionIsolation() == Connection.TRANSACTION_READ_UNCOMMITTED) {
|
||||
} else if (conn.getTransactionIsolation() == Connection.TRANSACTION_READ_UNCOMMITTED) {
|
||||
s_log.debug("transactionIsoliation = READ_UNCOMMITTED");
|
||||
} else if(conn.getTransactionIsolation() == Connection.TRANSACTION_REPEATABLE_READ) {
|
||||
} else if (conn.getTransactionIsolation() == Connection.TRANSACTION_REPEATABLE_READ) {
|
||||
s_log.debug("transactionIsoliation = REPEATABLE_READ");
|
||||
} else if(conn.getTransactionIsolation() == Connection.TRANSACTION_SERIALIZABLE) {
|
||||
} else if (conn.getTransactionIsolation() == Connection.TRANSACTION_SERIALIZABLE) {
|
||||
s_log.debug("transactionIsoliation = SERIALIZABLE");
|
||||
}
|
||||
}
|
||||
|
|
@ -92,12 +93,10 @@ public final class Connections {
|
|||
DatabaseMetaData meta = conn.getMetaData();
|
||||
String product = meta.getDatabaseProductName();
|
||||
String version = meta.getDatabaseProductVersion();
|
||||
if ("Oracle".equals(product) &&
|
||||
(version.indexOf("9.0.1") != -1 ||
|
||||
version.indexOf("9.2.0.1.0") != -1)) {
|
||||
if ("Oracle".equals(product) && (version.indexOf("9.0.1") != -1 || version.indexOf(
|
||||
"9.2.0.1.0") != -1)) {
|
||||
final Statement stmt = conn.createStatement();
|
||||
stmt.execute
|
||||
("alter session set \"_push_join_union_view\" = false");
|
||||
stmt.execute("alter session set \"_push_join_union_view\" = false");
|
||||
stmt.close();
|
||||
}
|
||||
|
||||
|
|
@ -106,4 +105,5 @@ public final class Connections {
|
|||
throw new UncheckedWrapperException(e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@
|
|||
--
|
||||
-- $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;
|
||||
|
||||
\i default/6.6.1-6.6.2/set_singleton.sql
|
||||
\i postgres/6.6.1-6.6.2/set_singleton.sql
|
||||
|
||||
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)
|
||||
|
||||
@@ ../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;
|
||||
|
||||
\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;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ ALTER TABLE pw_workspace_themes
|
|||
ALTER TABLE pw_workspaces
|
||||
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
|
||||
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);
|
||||
|
||||
|
||||
update application_types
|
||||
set object_type=replace(object_type,'london.portal', 'portalworkspace')
|
||||
where object_type like '%london.portal%' ;
|
||||
UPDATE application_types
|
||||
SET object_type = REPLACE(object_type,'london.portal', 'portalworkspace')
|
||||
WHERE object_type LIKE '%london.portal%' ;
|
||||
|
||||
-- table applications doesn't require an update
|
||||
|
||||
update apm_package_types
|
||||
set package_key=replace(package_key,'workspace', 'portalworkspace')
|
||||
where package_key like 'workspace' ;
|
||||
UPDATE apm_package_types
|
||||
SET package_key = REPLACE(package_key,'workspace', 'portalworkspace')
|
||||
WHERE package_key LIKE 'workspace' ;
|
||||
|
||||
-- table apm_packages doesn't require an update either
|
||||
-- table site_nodes doesn't require an update either
|
||||
|
||||
|
||||
-- update application type in acs_objects
|
||||
update acs_objects
|
||||
set (object_type,default_domain_class) =
|
||||
(replace(object_type,'london.portal', 'portalworkspace') ,
|
||||
replace(default_domain_class,'london.portal', 'portalworkspace') )
|
||||
where object_type like '%london.portal%' ;
|
||||
UPDATE acs_objects
|
||||
SET object_type = REPLACE(object_type,'london.portal', 'portalworkspace'),
|
||||
default_domain_class = REPLACE(default_domain_class,'london.portal', 'portalworkspace')
|
||||
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/upd_system_tables.sql
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ ALTER TABLE init_requirements
|
|||
|
||||
|
||||
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',
|
||||
description = 'Provides RSS feed service'
|
||||
WHERE object_type LIKE '%london.rss.RSS%';
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@
|
|||
--
|
||||
-- $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;
|
||||
|
||||
\i default/6.6.1-6.6.2/set_singleton.sql
|
||||
\i postgres/6.6.1-6.6.2/set_singleton.sql
|
||||
|
||||
commit;
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ delete from site_nodes
|
|||
where object_type
|
||||
like '%shortcuts.Shortcuts%')
|
||||
);
|
||||
|
||||
alter table site_nodes add constraint site_nodes_node_id_f_n1m2y
|
||||
FOREIGN KEY (node_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
|
||||
alter table apm_packages drop constraint apm_package_package_id_f_46may ;
|
||||
|
||||
alter table applications drop constraint application_package_id_f_cdaho ;
|
||||
|
||||
delete from acs_objects
|
||||
where object_id in
|
||||
(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
|
||||
-- package_type_id in application_types
|
||||
alter table application_types drop constraint applica_typ_pac_typ_id_f_v80ma ;
|
||||
|
||||
delete from apm_package_types
|
||||
where package_type_id =
|
||||
(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
|
||||
FOREIGN KEY (package_type_id)
|
||||
REFERENCES apm_package_types (package_type_id);
|
||||
|
||||
alter table applications add constraint application_package_id_f_cdaho
|
||||
FOREIGN KEY (package_id)
|
||||
REFERENCES apm_packages (package_id);
|
||||
|
||||
alter table apm_packages add constraint apm_package_package_id_f_46may
|
||||
FOREIGN KEY (package_id)
|
||||
REFERENCES acs_objects (object_id);
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@ update application_types
|
|||
|
||||
-- update application type in acs_objects
|
||||
update acs_objects
|
||||
set (object_type,default_domain_class) =
|
||||
(replace(object_type,'london.shortcuts', 'shortcuts') ,
|
||||
replace(default_domain_class,'london.shortcuts', 'shortcuts') )
|
||||
set object_type = replace(object_type,'london.shortcuts', 'shortcuts'),
|
||||
default_domain_class = replace(default_domain_class,'london.shortcuts', 'shortcuts')
|
||||
where object_type like '%london.shortcuts%' ;
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@
|
|||
--
|
||||
-- $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;
|
||||
|
||||
\i default/6.6.1-6.6.2/set_singleton.sql
|
||||
\i postgres/6.6.1-6.6.2/set_singleton.sql
|
||||
|
||||
commit;
|
||||
|
|
|
|||
|
|
@ -24,15 +24,15 @@ 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=replace(class_name,'london.subsite', 'subsite')
|
||||
set class_name = replace(class_name,'london.subsite', 'subsite')
|
||||
where class_name like '%london.subsite%' ;
|
||||
|
||||
update init_requirements
|
||||
set init=replace(init,'london.subsite', 'subsite')
|
||||
set init = replace(init,'london.subsite', 'subsite')
|
||||
where init like '%london.subsite%' ;
|
||||
|
||||
update init_requirements
|
||||
set required_init=replace(required_init,'london.subsite', 'subsite')
|
||||
set required_init = replace(required_init,'london.subsite', 'subsite')
|
||||
where required_init like '%london.subsite%' ;
|
||||
|
||||
ALTER TABLE init_requirements
|
||||
|
|
@ -45,7 +45,7 @@ ALTER TABLE init_requirements
|
|||
|
||||
|
||||
update application_types
|
||||
set object_type=replace(object_type,'london.subsite', 'subsite')
|
||||
set object_type = replace(object_type,'london.subsite', 'subsite')
|
||||
where object_type like '%london.subsite%' ;
|
||||
|
||||
-- table applications doesn't require an update
|
||||
|
|
@ -58,7 +58,6 @@ update application_types
|
|||
|
||||
-- update application type in acs_objects
|
||||
update acs_objects
|
||||
set (object_type,default_domain_class) =
|
||||
(replace(object_type,'london.subsite', 'subsite') ,
|
||||
replace(default_domain_class,'london.subsite', 'subsite') )
|
||||
set object_type = replace(object_type,'london.subsite', 'subsite'),
|
||||
default_domain_class = replace(default_domain_class,'london.subsite', 'subsite')
|
||||
where object_type like '%london.subsite%' ;
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@
|
|||
--
|
||||
-- $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;
|
||||
|
||||
\i default/6.6.1-6.6.2/set_singleton.sql
|
||||
\i postgres/6.6.1-6.6.2/set_singleton.sql
|
||||
|
||||
commit;
|
||||
|
|
|
|||
|
|
@ -56,19 +56,17 @@ update applications
|
|||
|
||||
-- update application type in acs_objects
|
||||
update acs_objects
|
||||
set (object_type,display_name,default_domain_class) =
|
||||
('com.arsdigita.themedirector.ThemeDirector' ,
|
||||
'CCM Themes Administration',
|
||||
'com.arsdigita.themedirector.ThemeDirector' )
|
||||
set object_type = 'com.arsdigita.themedirector.ThemeDirector',
|
||||
display_name = 'CCM Themes Administration',
|
||||
default_domain_class = 'com.arsdigita.themedirector.ThemeDirector'
|
||||
where default_domain_class like 'com.arsdigita.london.theme.ThemeApplication' ;
|
||||
|
||||
-- update themes in acs_objects
|
||||
update acs_objects
|
||||
set display_name=replace(display_name,'london.theme', 'themedirector')
|
||||
set display_name = replace(display_name,'london.theme', 'themedirector')
|
||||
where default_domain_class like 'com.arsdigita.london.theme.Theme' ;
|
||||
|
||||
update acs_objects
|
||||
set (object_type,default_domain_class) =
|
||||
('com.arsdigita.themedirector.Theme' ,
|
||||
'com.arsdigita.themedirector.Theme' )
|
||||
where default_domain_class like 'com.arsdigita.london.theme.Theme' ;
|
||||
set object_type = 'com.arsdigita.themedirector.Theme',
|
||||
default_domain_class = 'com.arsdigita.themedirector.Theme'
|
||||
where default_domain_class like 'com.arsdigita.london.theme.Theme';
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@
|
|||
--
|
||||
-- $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;
|
||||
|
||||
\i default/6.6.2-6.6.3/set_singleton.sql
|
||||
\i postgres/6.6.2-6.6.3/set_singleton.sql
|
||||
|
||||
commit;
|
||||
|
|
|
|||
Loading…
Reference in New Issue