Database schema changes for supervision orders system incorporated

git-svn-id: http://scm.dspace.org/svn/repo/trunk@1137 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Richard Jones
2005-03-23 14:20:58 +00:00
parent 886284ab9d
commit bbe7e5041d
2 changed files with 18 additions and 4 deletions

View File

@@ -97,6 +97,7 @@ DROP TABLE EPerson;
DROP TABLE Bitstream; DROP TABLE Bitstream;
DROP TABLE FileExtension; DROP TABLE FileExtension;
DROP TABLE BitstreamFormatRegistry; DROP TABLE BitstreamFormatRegistry;
DROP TABLE EPersonGroup2WorkspaceItem;
-- Now drop the sequences for ID (primary key) creation -- Now drop the sequences for ID (primary key) creation
DROP SEQUENCE bitstreamformatregistry_seq; DROP SEQUENCE bitstreamformatregistry_seq;
@@ -130,6 +131,7 @@ DROP SEQUENCE itemsbyauthor_seq;
DROP SEQUENCE itemsbytitle_seq; DROP SEQUENCE itemsbytitle_seq;
DROP SEQUENCE itemsbydate_seq; DROP SEQUENCE itemsbydate_seq;
DROP SEQUENCE itemsbydateaccessioned_seq; DROP SEQUENCE itemsbydateaccessioned_seq;
DROP SEQUENCE epersongroup2workspaceitem_seq;
-- Drop the getnextid() function -- Drop the getnextid() function
DROP FUNCTION getnextid(VARCHAR(40)); DROP FUNCTION getnextid(VARCHAR(40));

View File

@@ -42,7 +42,8 @@
-- --
-- DSpace SQL schema -- 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, -- This file is used as-is to initialize a database. Therefore,
-- table and view definitions must be ordered correctly. -- 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 -- argument, will return a safe new ID to use to create a new
-- row in that table. -- row in that table.
------------------------------------------------------- -------------------------------------------------------
-- Function for obtaining new IDs. -- Function for obtaining new IDs.
-- --
@@ -109,7 +108,7 @@ CREATE SEQUENCE itemsbyauthor_seq;
CREATE SEQUENCE itemsbytitle_seq; CREATE SEQUENCE itemsbytitle_seq;
CREATE SEQUENCE itemsbydate_seq; CREATE SEQUENCE itemsbydate_seq;
CREATE SEQUENCE itemsbydateaccessioned_seq; CREATE SEQUENCE itemsbydateaccessioned_seq;
CREATE SEQUENCE epersongroup2workspaceitem_seq;
------------------------------------------------------- -------------------------------------------------------
-- BitstreamFormatRegistry table -- BitstreamFormatRegistry table
@@ -471,6 +470,19 @@ CREATE TABLE HistoryState
object_id VARCHAR(64) 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 -- Browse subsystem tables and views
------------------------------------------------------------ ------------------------------------------------------------