(Hoffentlich) letzte Korrekturen an update scripten.
Updates erstellen jetzt identisches Schema der db, CCM funktioniert auf den ersten Blick wie bisher. Update MUSS in folgender Reihenfolge durchgeführt werden: ccm-cms-assets-imagestep ccm-cms-assets-notes ccm-ldn-navigation ccm-ldn-terms ccm-cms ccm-cms-types-article ccm-cms-types-newsitem ccm-cms-types-event ccm-core git-svn-id: https://svn.libreccm.org/ccm/trunk@697 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
613c3a2d0b
commit
5b9ca53f8a
|
|
@ -19,4 +19,4 @@
|
|||
|
||||
PROMPT Red Hat Enterprise CT ARTICLE 6.6.0 -> 6.6.1 Upgrade Script (Oracle)
|
||||
|
||||
@@ ./default/6.6.0-6.6.1/upd_table_ct_articles.sql
|
||||
@@ default/6.6.0-6.6.1/upd_table_ct_articles.sql
|
||||
|
|
|
|||
|
|
@ -15,12 +15,12 @@
|
|||
-- License along with this library; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
--
|
||||
-- $DateTime: 2010/11/10 23:15:09 $
|
||||
-- $Id: postgres-6.6.0-6.6.1.sql pboy $
|
||||
|
||||
\echo Red Hat Enterprise CT ARTICLE 6.6.0 -> 6.6.1 Upgrade Script (PostgreSQL)
|
||||
|
||||
begin;
|
||||
|
||||
\i ./default/6.6.0-6.6.1/upd_table_ct_articles.sql
|
||||
\i default/6.6.0-6.6.1/upd_table_ct_articles.sql
|
||||
|
||||
commit;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
-- 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_ct_articles.sql pboy $
|
||||
-- $Id: upd_table_ct_events.sql pboy $
|
||||
|
||||
-- recreate constraint on cms_articles which had to be deleted during
|
||||
-- update of cms_articles
|
||||
|
|
|
|||
|
|
@ -19,4 +19,4 @@
|
|||
|
||||
PROMPT Red Hat Enterprise CT EVENT 6.6.0 -> 6.6.1 Upgrade Script (Oracle)
|
||||
|
||||
@@ ./default/6.6.0-6.6.1/upd_table_ct_events.sql
|
||||
@@ default/6.6.0-6.6.1/upd_table_ct_events.sql
|
||||
|
|
|
|||
|
|
@ -21,6 +21,6 @@
|
|||
|
||||
begin;
|
||||
|
||||
\i ./default/6.6.0-6.6.1/upd_table_ct_events.sql
|
||||
\i default/6.6.0-6.6.1/upd_table_ct_events.sql
|
||||
|
||||
commit;
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@
|
|||
-- 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_ct_articles.sql pboy $
|
||||
-- $Id: upd_constraints.sql pboy $
|
||||
|
||||
-- recreate constraint on cms_articles which had to be deleted during
|
||||
-- recreate constraint on ct_news which had to be deleted during
|
||||
-- update of cms_articles
|
||||
ALTER TABLE ct_news
|
||||
ADD CONSTRAINT ct_news_item_id_f_mduh5 FOREIGN KEY (item_id)
|
||||
|
|
|
|||
|
|
@ -19,4 +19,4 @@
|
|||
|
||||
PROMPT Red Hat Enterprise CT NEWSITEM 6.6.0 -> 6.6.1 Upgrade Script (Oracle)
|
||||
|
||||
@@ ../default/upgrade/6.6.0-6.6.1/upd_constraints.sql
|
||||
@@ default/6.6.0-6.6.1/upd_constraints.sql
|
||||
|
|
|
|||
|
|
@ -15,12 +15,12 @@
|
|||
-- License along with this library; if not, write to the Free Software
|
||||
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
--
|
||||
-- $DateTime: 2010/11/10 23:15:09 $
|
||||
-- $Id: postgres-6.6.0-6.6.1.sql 293 2011-01-07 15:10:39Z pboy $
|
||||
|
||||
\echo Red Hat Enterprise CT NEWSITEM 6.6.0 -> 6.6.1 Upgrade Script (PostgreSQL)
|
||||
|
||||
begin;
|
||||
|
||||
\i ./default/upgrade/6.6.0-6.6.1/upd_constraints.sql
|
||||
\i default/6.6.0-6.6.1/upd_constraints.sql
|
||||
|
||||
commit;
|
||||
|
|
|
|||
|
|
@ -30,16 +30,6 @@ comment on column content_types.classname is '
|
|||
comment on column content_types.label is '
|
||||
The pretty name for this content type
|
||||
';
|
||||
--comment on column content_types.is_internal is '
|
||||
-- An internal content type is one that is not user-defined and maintained
|
||||
-- internally. A content type should be made internal under the following
|
||||
-- two conditions:
|
||||
-- 1) The object type needs to take advantage of content type services
|
||||
-- (i.e., versioning, categorization, lifecycle, workflow) that are already
|
||||
-- implemented in CMS.
|
||||
-- 2) The content type cannot be explicitly registered to a content section.
|
||||
-- The Template content type is one such internal content type.
|
||||
--';
|
||||
comment on column content_types.mode is '
|
||||
Saves the mode of the content type: I = internal, H = hidden
|
||||
|
||||
|
|
@ -52,6 +42,6 @@ comment on column content_types.label is '
|
|||
2) The content type cannot be explicitly registered to a content section.
|
||||
The Template content type is one such internal content type.
|
||||
|
||||
A hidden content type is one that cannot used directly but other content
|
||||
A hidden content type is one that cannot be used directly but other content
|
||||
types can extend from it. Also, it is a legit parent for UDCTs.
|
||||
';
|
||||
|
|
|
|||
|
|
@ -13,9 +13,50 @@
|
|||
-- 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_cms_articles.sql pboy $
|
||||
-- $Id: upd_table_cms_articles .sql pboy $
|
||||
|
||||
-- alter table cms_articles add column text_id integer ;
|
||||
-- update cms_articles set text_id = (select text_id from cms_text_pages
|
||||
-- where cms_text_pages.item_id = cms_articles.article_id);
|
||||
|
||||
-- alter table cms_articles drop constraint cms_article_article_id_f_ekqk1 ;
|
||||
|
||||
-- alter table cms_articles add constraint cms_article_article_id_f_ekqk1
|
||||
-- FOREIGN KEY (article_id)
|
||||
-- REFERENCES cms_pages (item_id);
|
||||
-- alter table cms_articles add constraint cms_articles_text_id_f_8ah18
|
||||
-- FOREIGN KEY (text_id)
|
||||
-- REFERENCES cms_text (text_id);
|
||||
|
||||
-- alter table ct_events drop constraint ct_events_item_id_f_v7kjv ;
|
||||
|
||||
-- drop table cms_text_pages;
|
||||
|
||||
-- ALTER TABLE ct_events
|
||||
-- ADD CONSTRAINT ct_events_item_id_f_v7kjv FOREIGN KEY (item_id)
|
||||
-- REFERENCES cms_articles(article_id);
|
||||
-- Error msg bei zes-testupd:
|
||||
-- FEHLER: Einfügen oder Aktualisieren in Tabelle »ct_events« verletzt Fremdschlüssel-Constraint »ct_events_item_id_f_v7kjv«
|
||||
-- DETAIL: Schlüssel (item_id)=(520355) ist nicht in Tabelle »cms_articles« vorhanden.
|
||||
|
||||
-- deletes constraints in all tables with references on cms_articles!
|
||||
drop table cms_articles CASCADE ;
|
||||
|
||||
alter table cms_text_pages drop constraint cms_text_pages_item_id_f_kfox7 ;
|
||||
alter table cms_text_pages drop constraint cms_text_pages_text_id_f_uri55 ;
|
||||
alter table cms_text_pages drop constraint cms_text_pages_item_id_p_7tnky CASCADE ;
|
||||
drop index cms_text_pages_text_id_idx ;
|
||||
|
||||
alter table cms_text_pages rename to cms_articles ;
|
||||
alter table cms_articles rename column item_id to article_id ;
|
||||
|
||||
ALTER TABLE cms_articles ADD CONSTRAINT cms_article_article_id_p_s67nq
|
||||
PRIMARY KEY (article_id);
|
||||
alter table cms_articles add constraint cms_article_article_id_f_ekqk1
|
||||
FOREIGN KEY (article_id)
|
||||
REFERENCES cms_pages (item_id);
|
||||
alter table cms_articles add constraint cms_articles_text_id_f_8ah18
|
||||
FOREIGN KEY (text_id)
|
||||
REFERENCES cms_text (text_id);
|
||||
|
||||
|
||||
alter table cms_articles add column text_id integer ;
|
||||
update cms_articles set text_id = (select text_id from cms_text_pages
|
||||
where cms_text_pages.item_id = cms_articles.article_id);
|
||||
drop table cms_text_pages;
|
||||
|
|
@ -15,8 +15,8 @@
|
|||
--
|
||||
-- $Id: upd_constraints.sql pboy $
|
||||
|
||||
-- recreate constraint on cms_articles which had to be deleted during
|
||||
-- update of cms_articles
|
||||
-- recreate constraint on trm_domains_indexer which got lost anywhere during
|
||||
-- the update processes
|
||||
ALTER TABLE trm_domains_indexer
|
||||
ADD CONSTRAINT trm_doma_inde_index_id_f_ggaqm FOREIGN KEY (indexer_id)
|
||||
REFERENCES acs_objects(object_id);
|
||||
|
|
@ -17,6 +17,6 @@
|
|||
--
|
||||
-- $Id: oracle-se-6.6.0-6.6.1.sql 293 2011-01-07 15:10:39Z pboy $
|
||||
|
||||
PROMPT Red Hat Enterprise CT NEWSITEM 6.6.0 -> 6.6.1 Upgrade Script (Oracle)
|
||||
PROMPT Red Hat Enterprise TERMS 6.6.0 -> 6.6.1 Upgrade Script (Oracle)
|
||||
|
||||
@@ ./default/6.6.0-6.6.1/upd_constraints.sql
|
||||
@@ ../default/upgrade/6.6.0-6.6.1/upd_constraints.sql
|
||||
|
|
|
|||
|
|
@ -17,10 +17,10 @@
|
|||
--
|
||||
-- $DateTime: 2010/11/10 23:15:09 $
|
||||
|
||||
\echo Red Hat Enterprise CT NEWSITEM 6.6.0 -> 6.6.1 Upgrade Script (PostgreSQL)
|
||||
\echo Red Hat Enterprise TERMS 6.6.0 -> 6.6.1 Upgrade Script (PostgreSQL)
|
||||
|
||||
begin;
|
||||
|
||||
\i ./default/6.6.0-6.6.1/upd_constraints.sql
|
||||
\i ../default/upgrade/6.6.0-6.6.1/upd_constraints.sql
|
||||
|
||||
commit;
|
||||
|
|
|
|||
|
|
@ -15,4 +15,7 @@
|
|||
<version from="6.5.1" to="6.5.2">
|
||||
<script sql="ccm-ldn-terms/upgrade/::database::-6.5.1-6.5.2.sql"/>
|
||||
</version>
|
||||
<version from="6.6.0" to="6.6.1">
|
||||
<script sql="ccm-ldn-terms/upgrade/::database::-6.6.0-6.6.1.sql"/>
|
||||
</version>
|
||||
</upgrade>
|
||||
|
|
|
|||
Loading…
Reference in New Issue