Fixed upgrade ccm-navigation-6.6.2-6.6.3

git-svn-id: https://svn.libreccm.org/ccm/trunk@3036 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-12-11 15:30:55 +00:00
parent 0c95b6e88e
commit 473c1b186a
5 changed files with 48 additions and 6 deletions

View File

@ -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%' ;

View File

@ -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

View File

@ -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' ;

View File

@ -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

View File

@ -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' ;