From d415f88751a39b20506150da0120dfc7bd5e7b0f Mon Sep 17 00:00:00 2001 From: James Rutherford Date: Wed, 13 Jun 2007 07:54:39 +0000 Subject: [PATCH] (James Rutherford) - SF Patch #1638569 for SF Bug #1638565 Database Upgrade 12 to 13 missing content on new colums git-svn-id: http://scm.dspace.org/svn/repo/trunk@2011 9c30dcfa-912a-0410-8fc2-9e0234be79fd --- dspace/CHANGES | 1 + dspace/etc/database_schema_12-13.sql | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/dspace/CHANGES b/dspace/CHANGES index 9405b6a49a..b1901e1427 100644 --- a/dspace/CHANGES +++ b/dspace/CHANGES @@ -9,6 +9,7 @@ (James Rutherford) - Fixed SF bug #1727034 Method MetadataField.unique() is incorrect for null values - Fixed SF bug #1614546 get rid of unused mets_bitstream_id column +- SF Patch #1638569 for SF Bug #1638565 Database Upgrade 12 to 13 missing content on new colums 1.4.2 beta =========== diff --git a/dspace/etc/database_schema_12-13.sql b/dspace/etc/database_schema_12-13.sql index d04e110f99..cdd18feac5 100644 --- a/dspace/etc/database_schema_12-13.sql +++ b/dspace/etc/database_schema_12-13.sql @@ -69,6 +69,10 @@ ALTER TABLE collection ADD admin INTEGER REFERENCES EPersonGroup( eperson_group_ ALTER TABLE eperson ADD netid varchar(64) UNIQUE; +UPDATE collection SET submitter=(SELECT eperson_group_id FROM epersongroup WHERE epersongroup.name = 'COLLECTION_' || collection_id || '_SUBMIT'); + +UPDATE collection SET admin=(SELECT eperson_group_id FROM epersongroup WHERE epersongroup.name = 'COLLECTION_' || collection_id || '_ADMIN'); + ------------------------------------------------------------------------------- -- Additional indices for performance -------------------------------------------------------------------------------