Integration of patch r1700 of vendor trunk:

Addendum for r1633 to make the update script work for postgres:
Split of the common update script in ~/sql/ccm-ldn-image-script/default/upgrade/
into separate scripts for Oracle and Postgresql to reflect syntax differences.

(patch makes a contact item capable to be associated with any other content item)



git-svn-id: https://svn.libreccm.org/ccm/trunk@47 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2008-06-08 17:11:01 +00:00
parent 87563b9091
commit 78965b7743
4 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1,25 @@
--
-- Copyright (C) 2005 Chris Gilbert. 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
--
alter table cms_item_image_attachment add link_id INTEGER;
alter table cms_item_image_attachment add
constraint cms_ite_ima_att_lin_id_f_eeymm foreign key (link_id)
references cms_links(link_id);

View File

@ -1,4 +1,4 @@
PROMPT ImageStep 6.5.0 -> 6.5.1 Upgrade Script (Oracle)
@@ ../default/upgrade/6.5.0-6.5.1/add_link_column.sql
@@ ../oracle-se/upgrade/6.5.0-6.5.1/add_link_column.sql

View File

@ -2,6 +2,6 @@
begin;
\i ../default/upgrade/6.5.0-6.5.1/add_link_column.sql
\i ../postgres/upgrade/6.5.0-6.5.1/add_link_column.sql
commit;