From bbe7e5041d01afc45b9b3a8bd67171e9b53d3972 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 23 Mar 2005 14:20:58 +0000 Subject: [PATCH] Database schema changes for supervision orders system incorporated git-svn-id: http://scm.dspace.org/svn/repo/trunk@1137 9c30dcfa-912a-0410-8fc2-9e0234be79fd --- dspace/etc/clean-database.sql | 2 ++ dspace/etc/database_schema.sql | 20 ++++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/dspace/etc/clean-database.sql b/dspace/etc/clean-database.sql index c2e3ed119a..b02dd25ae6 100644 --- a/dspace/etc/clean-database.sql +++ b/dspace/etc/clean-database.sql @@ -97,6 +97,7 @@ DROP TABLE EPerson; DROP TABLE Bitstream; DROP TABLE FileExtension; DROP TABLE BitstreamFormatRegistry; +DROP TABLE EPersonGroup2WorkspaceItem; -- Now drop the sequences for ID (primary key) creation DROP SEQUENCE bitstreamformatregistry_seq; @@ -130,6 +131,7 @@ DROP SEQUENCE itemsbyauthor_seq; DROP SEQUENCE itemsbytitle_seq; DROP SEQUENCE itemsbydate_seq; DROP SEQUENCE itemsbydateaccessioned_seq; +DROP SEQUENCE epersongroup2workspaceitem_seq; -- Drop the getnextid() function DROP FUNCTION getnextid(VARCHAR(40)); diff --git a/dspace/etc/database_schema.sql b/dspace/etc/database_schema.sql index 5a891ee5bf..4244861fa0 100644 --- a/dspace/etc/database_schema.sql +++ b/dspace/etc/database_schema.sql @@ -42,7 +42,8 @@ -- -- DSpace SQL schema -- --- Authors: Peter Breton, Robert Tansley, David Stuve, Daniel Chudnov +-- Authors: Peter Breton, Robert Tansley, David Stuve, Daniel Chudnov, +-- Richard Jones -- -- This file is used as-is to initialize a database. Therefore, -- table and view definitions must be ordered correctly. @@ -58,8 +59,6 @@ -- argument, will return a safe new ID to use to create a new -- row in that table. - - ------------------------------------------------------- -- Function for obtaining new IDs. -- @@ -109,7 +108,7 @@ CREATE SEQUENCE itemsbyauthor_seq; CREATE SEQUENCE itemsbytitle_seq; CREATE SEQUENCE itemsbydate_seq; CREATE SEQUENCE itemsbydateaccessioned_seq; - +CREATE SEQUENCE epersongroup2workspaceitem_seq; ------------------------------------------------------- -- BitstreamFormatRegistry table @@ -471,6 +470,19 @@ CREATE TABLE HistoryState object_id VARCHAR(64) ); +------------------------------------------------------------------------------- +-- EPersonGroup2WorkspaceItem table +------------------------------------------------------------------------------- + +CREATE TABLE epersongroup2workspaceitem +( + id integer DEFAULT nextval('epersongroup2workspaceitem_seq'), + eperson_group_id integer, + workspace_item_id integer, + CONSTRAINT epersongroup2item_pkey PRIMARY KEY (id) +); + + ------------------------------------------------------------ -- Browse subsystem tables and views ------------------------------------------------------------