diff --git a/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/default/upgrade/6.6.0-6.6.1/upd_acs_objects.sql b/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/default/upgrade/6.6.0-6.6.1/upd_acs_objects.sql new file mode 100644 index 000000000..d72b1e03a --- /dev/null +++ b/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/default/upgrade/6.6.0-6.6.1/upd_acs_objects.sql @@ -0,0 +1,35 @@ +-- +-- Copyright (C) 2010 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: upd_acs_objects.sql $ + + +update acs_objects + set (object_type,display_name,default_domain_class) = + ('com.arsdigita.cms.contentassets.Note' , + 'com.arsdigita.cms.contentassets.Note ' || object_id , + 'com.arsdigita.cms.contentassets.Note' ) + where default_domain_class like 'com.arsdigita.london.notes.Note' ; + + +-- update acs_objects +-- set object_type = 'com.arsdigita.cms.contentassets.Note' +-- where object_type like 'com.arsdigita.london.notes.Note' ; + +-- update acs_objects +-- set default_domain_class = 'com.arsdigita.cms.contentassets.Note' +-- where default_domain_class like 'com.arsdigita.london.notes.Note' ; \ No newline at end of file diff --git a/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/default/upgrade/6.6.0-6.6.1/upd_inits.sql b/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/default/upgrade/6.6.0-6.6.1/upd_inits.sql new file mode 100644 index 000000000..51de474ce --- /dev/null +++ b/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/default/upgrade/6.6.0-6.6.1/upd_inits.sql @@ -0,0 +1,29 @@ +-- +-- Copyright (C) 2010 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: upd_inits.sql $ + +delete from init_requirements + where init like 'com.arsdigita.london.notes.NotesInitializer' ; + +update inits + set class_name = 'com.arsdigita.cms.contentassets.NotesInitializer' + where class_name like 'com.arsdigita.london.notes.NotesInitializer' ; + +insert into init_requirements + values ('com.arsdigita.cms.Initializer', + 'com.arsdigita.cms.contentassets.NotesInitializer') ; \ No newline at end of file diff --git a/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/upgrade/oracle-se-6.6.0-6.6.1.sql b/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/upgrade/oracle-se-6.6.0-6.6.1.sql new file mode 100644 index 000000000..569770c2a --- /dev/null +++ b/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/upgrade/oracle-se-6.6.0-6.6.1.sql @@ -0,0 +1,5 @@ + +PROMPT Notes 6.6.0 -> 6.6.1 Upgrade Script (Oracle) + +@@ ../default/upgrade/6.6.0-6.6.1/upd_inits.sql +@@ ../default/upgrade/6.6.0-6.6.1/upd_acs_objects.sql diff --git a/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/upgrade/postgres-6.6.0-6.6.1.sql b/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/upgrade/postgres-6.6.0-6.6.1.sql new file mode 100644 index 000000000..d44e6b9b9 --- /dev/null +++ b/ccm-cms-assets-notes/sql/ccm-cms-assets-notes/upgrade/postgres-6.6.0-6.6.1.sql @@ -0,0 +1,8 @@ +\echo Notes 6.5.0 -> 6.5.1 Upgrade Script (PostgreSQL) + +begin; + +\i ../default/upgrade/6.6.0-6.6.1/upd_inits.sql +\i ../default/upgrade/6.6.0-6.6.1/upd_acs_objects.sql + +commit; diff --git a/ccm-cms-assets-notes/src/WEB-INF/traversal-adapters/com/arsdigita/cms/contentassets/Notes.xml b/ccm-cms-assets-notes/src/WEB-INF/traversal-adapters/com/arsdigita/cms/contentassets/Notes.xml index f63bfaeeb..715b8d99f 100755 --- a/ccm-cms-assets-notes/src/WEB-INF/traversal-adapters/com/arsdigita/cms/contentassets/Notes.xml +++ b/ccm-cms-assets-notes/src/WEB-INF/traversal-adapters/com/arsdigita/cms/contentassets/Notes.xml @@ -6,7 +6,7 @@ - + - +