diff --git a/dspace/CHANGES b/dspace/CHANGES index 3ab707d397..e1a996b449 100644 --- a/dspace/CHANGES +++ b/dspace/CHANGES @@ -1,5 +1,8 @@ 1.4 beta 1 ========== +(Robert Tansley) +- Drop unique community name constraint + (Robert Tansley) - Scripts for Windows support diff --git a/dspace/etc/database_schema.sql b/dspace/etc/database_schema.sql index 255d701b26..ab1d048256 100644 --- a/dspace/etc/database_schema.sql +++ b/dspace/etc/database_schema.sql @@ -323,7 +323,7 @@ CREATE INDEX metadatafield_schema_idx ON MetadataFieldRegistry(metadata_schema_i CREATE TABLE Community ( community_id INTEGER PRIMARY KEY, - name VARCHAR(128) UNIQUE, + name VARCHAR(128), short_description VARCHAR(512), introductory_text TEXT, logo_bitstream_id INTEGER REFERENCES Bitstream(bitstream_id), diff --git a/dspace/etc/database_schema_13-14.sql b/dspace/etc/database_schema_13-14.sql index 7b84ece9cc..366c9270f2 100644 --- a/dspace/etc/database_schema_13-14.sql +++ b/dspace/etc/database_schema_13-14.sql @@ -147,3 +147,12 @@ SELECT setval('metadataschemaregistry_seq', max(metadata_schema_id)) FROM metada ALTER TABLE bitstream ADD COLUMN size_bytes BIGINT; UPDATE bitstream SET size_bytes = size; ALTER TABLE bitstream DROP COLUMN size; + +------------------------------------------------------ +-- Drop unique community name constraint +-- +-- FIXME: Needs testing; the constraint name is not +-- guaranteed to be the same as below. This step may +-- need to be performed by hand. +------------------------------------------------------ +ALTER TABLE community DROP CONSTRAINT community_name_key;