(Robert Tansley)

- Drop unique community name constraint


git-svn-id: http://scm.dspace.org/svn/repo/trunk@1380 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Robert Tansley
2005-11-22 20:53:51 +00:00
parent 84bed80978
commit 5cb6fbdeca
3 changed files with 13 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
1.4 beta 1
==========
(Robert Tansley)
- Drop unique community name constraint
(Robert Tansley)
- Scripts for Windows support

View File

@@ -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),

View File

@@ -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;