Modified upgrade ccm-cms-6.6.6-6.6.7. The definition of the column is_default which is added to the table section_workflow_template_map by this upgrade differs between PostgreSQL and Oracle (see generated DDL files). Created distict SQL files for PostgreSQL and Oracle which are creating the table with same definitions as in the generated DDL files.

git-svn-id: https://svn.libreccm.org/ccm/trunk@3019 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-12-09 16:11:04 +00:00
parent e86d5162f5
commit f7c13c00c6
4 changed files with 30 additions and 4 deletions

View File

@ -0,0 +1,25 @@
--
-- Copyright (C) 2012 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
--
-- Adds the is_default column to the section_workflow_template_map table
--
ALTER TABLE section_workflow_template_map
ADD COLUMN is_default CHAR(1) not null;
ALTER TABLE section_workflow_template_map
ADD CONSTRAINT sect_wor_tem_map_is_de_c_0mfli check(is_default in ('0', '1'));
UPDATE section_workflow_template_map SET is_default = '0';

View File

@ -18,5 +18,6 @@
-- Adds the is_default column to the section_workflow_template_map table
--
ALTER TABLE section_workflow_template_map ADD COLUMN is_default character varying(1) DEFAULT '0'::character varying NOT NULL;
-- UPDATE section_workflow_template_map SET is_default = 'false';
ALTER TABLE section_workflow_template_map
ADD COLUMN is_default BOOLEAN NOT NULL;
UPDATE section_workflow_template_map SET is_default = 'false';

View File

@ -23,4 +23,4 @@ PROMPT Red Hat Enterprise CMS 6.6.6 -> 6.6.7 Upgrade Script (Oracle)
@@ ../default/upgrade/6.6.6-6.6.7/remove_workspace_legacy_entries.sql
@@ ../default/upgrade/6.6.6-6.6.7/remove_service_legacy_entries.sql
@@ ../default/upgrade/6.6.6-6.6.7/add_default_workflow.sql
@@ ../oracle-se/upgrade/6.6.6-6.6.7/add_default_workflow.sql

View File

@ -26,6 +26,6 @@ begin;
\i ../default/upgrade/6.6.6-6.6.7/remove_workspace_legacy_entries.sql
\i ../default/upgrade/6.6.6-6.6.7/remove_service_legacy_entries.sql
\i ../default/upgrade/6.6.6-6.6.7/add_default_workflow.sql
\i ../postgres/upgrade/6.6.6-6.6.7/add_default_workflow.sql
commit;