diff --git a/ccm-cms/sql/ccm-cms/default/upgrade/6.6.3-6.6.4/cleanup_some_tables.sql b/ccm-cms/sql/ccm-cms/default/upgrade/6.6.3-6.6.4/cleanup_some_tables.sql new file mode 100644 index 000000000..4104edfe8 --- /dev/null +++ b/ccm-cms/sql/ccm-cms/default/upgrade/6.6.3-6.6.4/cleanup_some_tables.sql @@ -0,0 +1,31 @@ +-- +-- +-- 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: cleanup_tables.sql pboy $ + + + +-- db staatsschiff-114, wsf-114 +-- ALTER TABLE ONLY cms_persons +-- DROP CONSTRAINT cms_persons_alias_id_fkey; +-- db iaw-114 +ALTER TABLE ONLY cms_persons + DROP CONSTRAINT cms_persons_aliasid_fkey; +ALTER TABLE cms_persons + ADD CONSTRAINT cms_persons_alias_id_f_uaoxu FOREIGN KEY (alias_id) + REFERENCES cms_persons (person_id) MATCH SIMPLE + ON UPDATE NO ACTION ON DELETE NO ACTION; + diff --git a/ccm-cms/sql/ccm-cms/default/upgrade/6.6.3-6.6.4/create_orgaunit_hierarchy_table.sql b/ccm-cms/sql/ccm-cms/default/upgrade/6.6.3-6.6.4/create_orgaunit_hierarchy_table.sql index bac9d493b..82801cfbe 100644 --- a/ccm-cms/sql/ccm-cms/default/upgrade/6.6.3-6.6.4/create_orgaunit_hierarchy_table.sql +++ b/ccm-cms/sql/ccm-cms/default/upgrade/6.6.3-6.6.4/create_orgaunit_hierarchy_table.sql @@ -15,11 +15,8 @@ -- 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: upd_table_persons.sql pboy $ +-- $Id: create_orgaunit_hierarchy_map.sql pboy $ --- This update is only applicable for the internal development tree at --- University of Bremen ! Don't use for the APLAWS main trunk on --- fedorahosted! CREATE TABLE cms_organizationalunits_hierarchy_map ( superior_orgaunit_id integer NOT NULL, @@ -29,14 +26,17 @@ CREATE TABLE cms_organizationalunits_hierarchy_map ( subordinate_orgaunit_order integer ); --- No sure how to get db owner here --- ALTER TABLE public.cms_organizationalunits_hierarchy_map OWNER TO iaw; ALTER TABLE ONLY cms_organizationalunits_hierarchy_map - ADD CONSTRAINT cms_org_hie_map_sub_or_p_nykpq PRIMARY KEY (subordinate_orgaunit_id, superior_orgaunit_id); + ADD CONSTRAINT cms_org_hie_map_sub_or_p_nykpq + PRIMARY KEY (subordinate_orgaunit_id, superior_orgaunit_id); ALTER TABLE ONLY cms_organizationalunits_hierarchy_map - ADD CONSTRAINT cms_org_hie_map_sub_or_f_xq5is FOREIGN KEY (subordinate_orgaunit_id) REFERENCES cms_organizationalunits(organizationalunit_id); + ADD CONSTRAINT cms_org_hie_map_sub_or_f_xq5is + FOREIGN KEY (subordinate_orgaunit_id) + REFERENCES cms_organizationalunits(organizationalunit_id); ALTER TABLE ONLY cms_organizationalunits_hierarchy_map - ADD CONSTRAINT cms_org_hie_map_sup_or_f_qchkn FOREIGN KEY (superior_orgaunit_id) REFERENCES cms_organizationalunits(organizationalunit_id); \ No newline at end of file + ADD CONSTRAINT cms_org_hie_map_sup_or_f_qchkn + FOREIGN KEY (superior_orgaunit_id) + REFERENCES cms_organizationalunits(organizationalunit_id); \ No newline at end of file diff --git a/ccm-cms/sql/ccm-cms/default/upgrade/6.6.3-6.6.4/create_publish_lock_table.sql b/ccm-cms/sql/ccm-cms/default/upgrade/6.6.3-6.6.4/create_publish_lock_table.sql deleted file mode 100644 index 248cc033c..000000000 --- a/ccm-cms/sql/ccm-cms/default/upgrade/6.6.3-6.6.4/create_publish_lock_table.sql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE TABLE cms_publish_lock ( - lock_id integer NOT NULL, - locked_oid character varying(2048), - lock_timestamp timestamp with time zone, - action character varying(256) -); - -ALTER TABLE ONLY cms_publish_lock - ADD CONSTRAINT cms_publis_loc_lock_id_p_8n7d0 PRIMARY KEY (lock_id); - --- ALTER TABLE public.cms_publish_lock OWNER TO ccm; \ No newline at end of file diff --git a/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.6.3-6.6.4.sql b/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.6.3-6.6.4.sql new file mode 100644 index 000000000..255f45a38 --- /dev/null +++ b/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.6.3-6.6.4.sql @@ -0,0 +1,24 @@ +-- +-- Copyright (C) 2011 Peter Boy 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: oracle-se-6.6.2-6.6.3.sql 2011-09-06 15:10:39Z pboy $ + + +PROMPT Red Hat Enterprise CMS 6.6.3 -> 6.6.4 Upgrade Script (Oracle) + +@@ ../default/upgrade/6.6.3-6.6.4/create_orgaunit_hierarchy_table.sql +@@ ../default/upgrade/6.6.3-6.6.4/create_publish_lock_table.sql diff --git a/ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.3-6.6.4.sql b/ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.3-6.6.4.sql index 929312b75..2ab0edff9 100644 --- a/ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.3-6.6.4.sql +++ b/ccm-cms/sql/ccm-cms/upgrade/postgres-6.6.3-6.6.4.sql @@ -25,7 +25,7 @@ begin; -\i ../default/upgrade/6.6.2-6.6.3/create_orgaunit_hierarchy_table.sql -\i ../default/upgrade/6.6.2-6.6.3/create_publish_lock_table.sql +\i ../default/upgrade/6.6.3-6.6.4/create_orgaunit_hierarchy_table.sql +\i ../default/upgrade/6.6.3-6.6.4/create_publish_lock_table.sql commit; \ No newline at end of file diff --git a/ccm-cms/src/ccm-cms.upgrade b/ccm-cms/src/ccm-cms.upgrade index 857dd129f..75606295a 100755 --- a/ccm-cms/src/ccm-cms.upgrade +++ b/ccm-cms/src/ccm-cms.upgrade @@ -48,7 +48,6 @@