mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Minor reformatting of PostgreSQL schema (similar to Oracle schema in previous commit), just for consistency.
This commit is contained in:
@@ -252,7 +252,8 @@ CREATE INDEX item_submitter_fk_idx ON Item(submitter_id);
|
|||||||
CREATE TABLE Bundle
|
CREATE TABLE Bundle
|
||||||
(
|
(
|
||||||
bundle_id INTEGER PRIMARY KEY,
|
bundle_id INTEGER PRIMARY KEY,
|
||||||
name VARCHAR(16), -- ORIGINAL | THUMBNAIL | TEXT
|
-- name: ORIGINAL | THUMBNAIL | TEXT
|
||||||
|
name VARCHAR(16),
|
||||||
primary_bitstream_id INTEGER REFERENCES Bitstream(bitstream_id)
|
primary_bitstream_id INTEGER REFERENCES Bitstream(bitstream_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -530,11 +531,10 @@ CREATE INDEX workspace_coll_fk_idx ON WorkspaceItem(collection_id);
|
|||||||
CREATE TABLE WorkflowItem
|
CREATE TABLE WorkflowItem
|
||||||
(
|
(
|
||||||
workflow_id INTEGER PRIMARY KEY,
|
workflow_id INTEGER PRIMARY KEY,
|
||||||
item_id INTEGER REFERENCES Item(item_id) UNIQUE,
|
item_id INTEGER UNIQUE REFERENCES Item(item_id),
|
||||||
collection_id INTEGER REFERENCES Collection(collection_id),
|
collection_id INTEGER REFERENCES Collection(collection_id),
|
||||||
state INTEGER,
|
state INTEGER,
|
||||||
owner INTEGER REFERENCES EPerson(eperson_id),
|
owner INTEGER REFERENCES EPerson(eperson_id),
|
||||||
|
|
||||||
-- Answers to questions on first page of submit UI
|
-- Answers to questions on first page of submit UI
|
||||||
multiple_titles BOOL,
|
multiple_titles BOOL,
|
||||||
published_before BOOL,
|
published_before BOOL,
|
||||||
@@ -621,9 +621,9 @@ CREATE INDEX Comm2Item_community_fk_idx ON Communities2Item( community_id );
|
|||||||
-- Community2Item view
|
-- Community2Item view
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
CREATE VIEW Community2Item as
|
CREATE VIEW Community2Item as
|
||||||
SELECT Community2Collection.community_id, Collection2Item.item_id
|
SELECT Community2Collection.community_id, Collection2Item.item_id
|
||||||
FROM Community2Collection, Collection2Item
|
FROM Community2Collection, Collection2Item
|
||||||
WHERE Collection2Item.collection_id = Community2Collection.collection_id
|
WHERE Collection2Item.collection_id = Community2Collection.collection_id
|
||||||
;
|
;
|
||||||
|
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
@@ -705,61 +705,61 @@ CREATE INDEX ch_result_fk_idx ON checksum_history( result );
|
|||||||
-- possible
|
-- possible
|
||||||
|
|
||||||
insert into checksum_results
|
insert into checksum_results
|
||||||
values
|
values
|
||||||
(
|
(
|
||||||
'INVALID_HISTORY',
|
'INVALID_HISTORY',
|
||||||
'Install of the cheksum checking code do not consider this history as valid'
|
'Install of the cheksum checking code do not consider this history as valid'
|
||||||
);
|
);
|
||||||
|
|
||||||
insert into checksum_results
|
insert into checksum_results
|
||||||
values
|
values
|
||||||
(
|
(
|
||||||
'BITSTREAM_NOT_FOUND',
|
'BITSTREAM_NOT_FOUND',
|
||||||
'The bitstream could not be found'
|
'The bitstream could not be found'
|
||||||
);
|
);
|
||||||
|
|
||||||
insert into checksum_results
|
insert into checksum_results
|
||||||
values
|
values
|
||||||
(
|
(
|
||||||
'CHECKSUM_MATCH',
|
'CHECKSUM_MATCH',
|
||||||
'Current checksum matched previous checksum'
|
'Current checksum matched previous checksum'
|
||||||
);
|
);
|
||||||
|
|
||||||
insert into checksum_results
|
insert into checksum_results
|
||||||
values
|
values
|
||||||
(
|
(
|
||||||
'CHECKSUM_NO_MATCH',
|
'CHECKSUM_NO_MATCH',
|
||||||
'Current checksum does not match previous checksum'
|
'Current checksum does not match previous checksum'
|
||||||
);
|
);
|
||||||
|
|
||||||
insert into checksum_results
|
insert into checksum_results
|
||||||
values
|
values
|
||||||
(
|
(
|
||||||
'CHECKSUM_PREV_NOT_FOUND',
|
'CHECKSUM_PREV_NOT_FOUND',
|
||||||
'Previous checksum was not found: no comparison possible'
|
'Previous checksum was not found: no comparison possible'
|
||||||
);
|
);
|
||||||
|
|
||||||
insert into checksum_results
|
insert into checksum_results
|
||||||
values
|
values
|
||||||
(
|
(
|
||||||
'BITSTREAM_INFO_NOT_FOUND',
|
'BITSTREAM_INFO_NOT_FOUND',
|
||||||
'Bitstream info not found'
|
'Bitstream info not found'
|
||||||
);
|
);
|
||||||
|
|
||||||
insert into checksum_results
|
insert into checksum_results
|
||||||
values
|
values
|
||||||
(
|
(
|
||||||
'CHECKSUM_ALGORITHM_INVALID',
|
'CHECKSUM_ALGORITHM_INVALID',
|
||||||
'Invalid checksum algorithm'
|
'Invalid checksum algorithm'
|
||||||
);
|
);
|
||||||
insert into checksum_results
|
insert into checksum_results
|
||||||
values
|
values
|
||||||
(
|
(
|
||||||
'BITSTREAM_NOT_PROCESSED',
|
'BITSTREAM_NOT_PROCESSED',
|
||||||
'Bitstream marked to_be_processed=false'
|
'Bitstream marked to_be_processed=false'
|
||||||
);
|
);
|
||||||
insert into checksum_results
|
insert into checksum_results
|
||||||
values
|
values
|
||||||
(
|
(
|
||||||
'BITSTREAM_MARKED_DELETED',
|
'BITSTREAM_MARKED_DELETED',
|
||||||
'Bitstream marked deleted in bitstream table'
|
'Bitstream marked deleted in bitstream table'
|
||||||
|
Reference in New Issue
Block a user