Added SQL to bring Oracle schema inline with Postgres updates

git-svn-id: http://scm.dspace.org/svn/repo/trunk@2257 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2007-10-22 14:41:10 +00:00
parent 8c3b4ead62
commit 30c3a05a38
2 changed files with 21 additions and 2 deletions

View File

@@ -138,7 +138,8 @@ CREATE TABLE EPerson
last_active TIMESTAMP,
sub_frequency INTEGER,
phone VARCHAR2(32),
netid VARCHAR2(64) UNIQUE
netid VARCHAR2(64) UNIQUE,
language VARCHAR2(64)
);
@@ -411,7 +412,8 @@ CREATE TABLE WorkspaceItem
published_before NUMBER(1),
multiple_files NUMBER(1),
-- How for the user has got in the submit process
stage_reached INTEGER
stage_reached INTEGER,
page_reached INTEGER
);
-------------------------------------------------------

View File

@@ -48,3 +48,20 @@
-- Remove NOT NULL restrictions from the checksum columns of most_recent_checksum
ALTER TABLE most_recent_checksum MODIFY expected_checksum null;
ALTER TABLE most_recent_checksum MODIFY current_checksum null;
------------------------------------------------------
-- New Column language language in EPerson
------------------------------------------------------
alter table eperson add column language VARCHAR2(64);
update eperson set language = 'en';
alter table bundle drop column mets_bitstream_id; -- totally unused column
-------------------------------------------------------------------------------
-- Necessary for Configurable Submission functionality:
-- Modification to workspaceitem table to support keeping track
-- of the last page reached within a step in the Configurable Submission Process
-------------------------------------------------------------------------------
ALTER TABLE workspaceitem ADD page_reached INTEGER;