Atmire dspace 3.0 versioning contribution

Versioning : Add Spring WebMVC Control
Versioning : AIP Prototype Test Improvements.
This commit is contained in:
Mark Diggory
2012-08-21 14:43:02 +02:00
parent 538017d84c
commit db9f6e6f36
73 changed files with 6263 additions and 168 deletions

View File

@@ -31,8 +31,32 @@ ALTER TABLE resourcepolicy ADD rpdescription VARCHAR(100);
ALTER TABLE item ADD discoverable BOOLEAN;
update item set discoverable=true;
-------------------------------------------
-- Item Level Versioning Tables
-------------------------------------------
CREATE TABLE versionhistory
(
versionhistory_id INTEGER NOT NULL PRIMARY KEY
);
CREATE TABLE versionitem
(
versionitem_id INTEGER NOT NULL PRIMARY KEY,
item_id INTEGER REFERENCES Item(item_id),
version_number INTEGER,
eperson_id INTEGER REFERENCES EPerson(eperson_id),
version_date TIMESTAMP,
version_summary VARCHAR(255),
versionhistory_id INTEGER REFERENCES VersionHistory(versionhistory_id)
);
CREATE SEQUENCE versionitem_seq;
CREATE SEQUENCE versionhistory_seq;
-------------------------------------------
-- New columns and longer hash for salted password hashing DS-861 --