mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 02:24:18 +00:00
(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:
@@ -1,5 +1,8 @@
|
|||||||
1.4 beta 1
|
1.4 beta 1
|
||||||
==========
|
==========
|
||||||
|
(Robert Tansley)
|
||||||
|
- Drop unique community name constraint
|
||||||
|
|
||||||
(Robert Tansley)
|
(Robert Tansley)
|
||||||
- Scripts for Windows support
|
- Scripts for Windows support
|
||||||
|
|
||||||
|
@@ -323,7 +323,7 @@ CREATE INDEX metadatafield_schema_idx ON MetadataFieldRegistry(metadata_schema_i
|
|||||||
CREATE TABLE Community
|
CREATE TABLE Community
|
||||||
(
|
(
|
||||||
community_id INTEGER PRIMARY KEY,
|
community_id INTEGER PRIMARY KEY,
|
||||||
name VARCHAR(128) UNIQUE,
|
name VARCHAR(128),
|
||||||
short_description VARCHAR(512),
|
short_description VARCHAR(512),
|
||||||
introductory_text TEXT,
|
introductory_text TEXT,
|
||||||
logo_bitstream_id INTEGER REFERENCES Bitstream(bitstream_id),
|
logo_bitstream_id INTEGER REFERENCES Bitstream(bitstream_id),
|
||||||
|
@@ -147,3 +147,12 @@ SELECT setval('metadataschemaregistry_seq', max(metadata_schema_id)) FROM metada
|
|||||||
ALTER TABLE bitstream ADD COLUMN size_bytes BIGINT;
|
ALTER TABLE bitstream ADD COLUMN size_bytes BIGINT;
|
||||||
UPDATE bitstream SET size_bytes = size;
|
UPDATE bitstream SET size_bytes = size;
|
||||||
ALTER TABLE bitstream DROP COLUMN 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;
|
||||||
|
Reference in New Issue
Block a user