mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-23 09:53:09 +00:00
Updated schema. Changed names of two views to shorten them to get around some data migration problems.
CollectionItemsByDateAccessioned -> CollectionItemsByDateAccession CommunityItemsByDateAccessioned -> CommunityItemsByDateAccession git-svn-id: http://scm.dspace.org/svn/repo/trunk@666 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -55,8 +55,8 @@
|
||||
DROP INDEX dcvalue_dc_type_id_idx;
|
||||
|
||||
-- Drop the views
|
||||
DROP VIEW CommunityItemsByDateAccessioned;
|
||||
DROP VIEW CollectionItemsByDateAccessioned;
|
||||
DROP VIEW CommunityItemsByDateAccession;
|
||||
DROP VIEW CollectionItemsByDateAccession;
|
||||
DROP VIEW CommunityItemsByDate;
|
||||
DROP VIEW CollectionItemsByDate;
|
||||
DROP VIEW CommunityItemsByTitle;
|
||||
|
@@ -575,18 +575,18 @@ CREATE TABLE ItemsByDateAccessioned
|
||||
);
|
||||
|
||||
-------------------------------------------------------
|
||||
-- CollectionItemsByDateAccessioned view
|
||||
-- CollectionItemsByDateAccession view
|
||||
-------------------------------------------------------
|
||||
CREATE VIEW CollectionItemsByDateAccessioned as
|
||||
CREATE VIEW CollectionItemsByDateAccession as
|
||||
SELECT Collection2Item.collection_id, ItemsByDateAccessioned.*
|
||||
FROM ItemsByDateAccessioned, Collection2Item
|
||||
WHERE ItemsByDateAccessioned.item_id = Collection2Item.item_id
|
||||
;
|
||||
|
||||
-------------------------------------------------------
|
||||
-- CommunityItemsByDateAccessioned view
|
||||
-- CommunityItemsByDateAccession view
|
||||
-------------------------------------------------------
|
||||
CREATE VIEW CommunityItemsByDateAccessioned as
|
||||
CREATE VIEW CommunityItemsByDateAccession as
|
||||
SELECT Community2Item.community_id, ItemsByDateAccessioned.*
|
||||
FROM ItemsByDateAccessioned, Community2Item
|
||||
WHERE ItemsByDateAccessioned.item_id = Community2Item.item_id
|
||||
|
@@ -261,9 +261,9 @@ public class Browse
|
||||
private static String getLastSubmittedTable(BrowseScope scope)
|
||||
{
|
||||
if (scope.isCommunityScope())
|
||||
return "CommunityItemsByDateAccessioned";
|
||||
return "CommunityItemsByDateAccession";
|
||||
else if (scope.isCollectionScope())
|
||||
return "CollectionItemsByDateAccessioned";
|
||||
return "CollectionItemsByDateAccession";
|
||||
|
||||
return "ItemsByDateAccessioned";
|
||||
}
|
||||
|
Reference in New Issue
Block a user