diff --git a/ccm-bookmarks/application.xml b/ccm-bookmarks/application.xml index 7bd70df6a..1de5b9b2d 100755 --- a/ccm-bookmarks/application.xml +++ b/ccm-bookmarks/application.xml @@ -2,7 +2,7 @@ diff --git a/ccm-bookmarks/sql/ccm-bookmarks/upgrade/default/6.6.0-6.6.1/upd_inits.sql b/ccm-bookmarks/sql/ccm-bookmarks/upgrade/default/6.6.0-6.6.1/upd_inits.sql new file mode 100644 index 000000000..92ad4dd11 --- /dev/null +++ b/ccm-bookmarks/sql/ccm-bookmarks/upgrade/default/6.6.0-6.6.1/upd_inits.sql @@ -0,0 +1,43 @@ +-- +-- 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: upd_inits.sql $ + +-- adjust various system tables to the new location of Initializer +alter table init_requirements drop constraint init_requirements_init_f_cmmdn ; + +alter table init_requirements drop constraint init_require_requ_init_f_i6rgg ; + +update inits + set class_name=replace(class_name,'bookmarks.installer.Initializer', + 'bookmarks.Initializer') + where class_name like '%bookmarks.installer.Initializer%' ; + +update init_requirements + set init='com.arsdigita.bookmarks.Initializer' + where init='com.arsdigita.bookmarks.installer.Initializer' ; + + +ALTER TABLE ONLY init_requirements + ADD CONSTRAINT init_requirements_init_f_cmmdn FOREIGN KEY (init) + REFERENCES inits (class_name) MATCH SIMPLE + ON UPDATE NO ACTION ON DELETE NO ACTION; + +ALTER TABLE init_requirements + ADD CONSTRAINT init_require_requ_init_f_i6rgg FOREIGN KEY (required_init) + REFERENCES inits (class_name) MATCH SIMPLE + ON UPDATE NO ACTION ON DELETE NO ACTION; diff --git a/ccm-bookmarks/sql/ccm-bookmarks/upgrade/oracle-se-6.6.0-6.6.1.sql b/ccm-bookmarks/sql/ccm-bookmarks/upgrade/oracle-se-6.6.0-6.6.1.sql new file mode 100644 index 000000000..5a48d96fc --- /dev/null +++ b/ccm-bookmarks/sql/ccm-bookmarks/upgrade/oracle-se-6.6.0-6.6.1.sql @@ -0,0 +1,23 @@ +-- +-- 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 +-- +-- $DateTime: 2011/09/10 23:15:09 $ + + +PROMPT Bookmarks Application 6.6.0 -> 6.6.1 Upgrade Script (Oracle) + +@@ default/6.6.0-6.6.1/upd_inits.sql diff --git a/ccm-bookmarks/sql/ccm-bookmarks/upgrade/postgres-6.6.0-6.6.1.sql b/ccm-bookmarks/sql/ccm-bookmarks/upgrade/postgres-6.6.0-6.6.1.sql new file mode 100644 index 000000000..287cd06db --- /dev/null +++ b/ccm-bookmarks/sql/ccm-bookmarks/upgrade/postgres-6.6.0-6.6.1.sql @@ -0,0 +1,26 @@ +-- +-- 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 +-- +-- $DateTime: 2011/09/10 23:15:09 $ + +\echo Bookmarks Application 6.6.0 -> 6.6.1 Upgrade Script (PostgreSQL) + +begin; + +\i default/6.6.0-6.6.1/upd_inits.sql + +commit; diff --git a/ccm-bookmarks/src/ccm-bookmarks.upgrade b/ccm-bookmarks/src/ccm-bookmarks.upgrade index f8070cf50..677c90d58 100755 --- a/ccm-bookmarks/src/ccm-bookmarks.upgrade +++ b/ccm-bookmarks/src/ccm-bookmarks.upgrade @@ -1,2 +1,5 @@ + +