/* ----------------------------------------
   Add unique constraint to prevent multiple drafts
    Ticket 2132
*/ ----------------------------------------

ALTER TABLE datasetversion
ADD CONSTRAINT uq_datasetversion UNIQUE(dataset_id, versionnumber, minorversionnumber);

Add constraint to datasetVersion table
Add constraint to datasetVersion table

…to prevent multiple draft versions
