diff --git a/ccm-navigation/sql/ccm-navigation/upgrade/default/6.6.2-6.6.3/upd_system_tables.sql b/ccm-navigation/sql/ccm-navigation/upgrade/default/6.6.2-6.6.3/upd_system_tables.sql index eb95ba862..630c2e5a3 100644 --- a/ccm-navigation/sql/ccm-navigation/upgrade/default/6.6.2-6.6.3/upd_system_tables.sql +++ b/ccm-navigation/sql/ccm-navigation/upgrade/default/6.6.2-6.6.3/upd_system_tables.sql @@ -44,13 +44,11 @@ ALTER TABLE init_requirements update application_types - set object_type=replace(object_type,'london.navigation','navigation'), - singleton_p=false + set object_type=replace(object_type,'london.navigation','navigation') where object_type like '%london.navigation%' ; update acs_objects - set (object_type,default_domain_class) = - (replace(object_type,'london.navigation', 'navigation') , - replace(default_domain_class,'london.navigation', 'navigation') ) - where object_type like '%london.navigation%' ; + set object_type = replace(object_type,'london.navigation', 'navigation'), + default_domain_class = replace(default_domain_class,'london.navigation', 'navigation') + where object_type like '%london.navigation%' ; diff --git a/ccm-navigation/sql/ccm-navigation/upgrade/oracle-se-6.6.2-6.6.3.sql b/ccm-navigation/sql/ccm-navigation/upgrade/oracle-se-6.6.2-6.6.3.sql index 21c714615..18d4d3ca9 100644 --- a/ccm-navigation/sql/ccm-navigation/upgrade/oracle-se-6.6.2-6.6.3.sql +++ b/ccm-navigation/sql/ccm-navigation/upgrade/oracle-se-6.6.2-6.6.3.sql @@ -22,5 +22,6 @@ @@ default/6.6.2-6.6.3/upd_system_tables.sql +@@ oracle-se/6.6.2-6.6.3/set-singleton.sql -- no need to update navigation specific application tables -- @@ ../postgres/upgrade/6.6.2-6.6.3/upd_navigation_tables.sql diff --git a/ccm-navigation/sql/ccm-navigation/upgrade/oracle-se/6.6.2-6.6.3/set-singleton.sql b/ccm-navigation/sql/ccm-navigation/upgrade/oracle-se/6.6.2-6.6.3/set-singleton.sql new file mode 100644 index 000000000..24b92a0f5 --- /dev/null +++ b/ccm-navigation/sql/ccm-navigation/upgrade/oracle-se/6.6.2-6.6.3/set-singleton.sql @@ -0,0 +1,21 @@ +-- +-- Copyright (C) 2014 Jens Pelztter 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 +-- + +update application_types + set singleton_p = '0' + where object_type = 'com.arsdigita.navigation.Navigation' ; diff --git a/ccm-navigation/sql/ccm-navigation/upgrade/postgres-6.6.2-6.6.3.sql b/ccm-navigation/sql/ccm-navigation/upgrade/postgres-6.6.2-6.6.3.sql index 08894a558..e5e79b9f0 100644 --- a/ccm-navigation/sql/ccm-navigation/upgrade/postgres-6.6.2-6.6.3.sql +++ b/ccm-navigation/sql/ccm-navigation/upgrade/postgres-6.6.2-6.6.3.sql @@ -23,6 +23,7 @@ begin; \i default/6.6.2-6.6.3/upd_system_tables.sql +\i postgres/6.6.2-6.6.3/set-singleton.sql -- no need to update navigation specific application tables -- \i ../postgres/upgrade/6.6.2-6.6.3/upd_navigation_tables.sql diff --git a/ccm-navigation/sql/ccm-navigation/upgrade/postgres/6.6.2-6.6.3/set-singleton.sql b/ccm-navigation/sql/ccm-navigation/upgrade/postgres/6.6.2-6.6.3/set-singleton.sql new file mode 100644 index 000000000..3fd226841 --- /dev/null +++ b/ccm-navigation/sql/ccm-navigation/upgrade/postgres/6.6.2-6.6.3/set-singleton.sql @@ -0,0 +1,21 @@ +-- +-- Copyright (C) 2014 Jens Pelztter 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 +-- + +update application_types + set singleton_p = false + where object_type = 'com.arsdigita.navigation.Navigation' ;