-- Remove the unique constraint and documentId column

DROP INDEX IF EXISTS idx_documentfieldextractionversions_documentid;
DROP INDEX IF EXISTS idx_unique_version_per_document;

ALTER TABLE documentFieldExtractionVersions
DROP CONSTRAINT IF EXISTS fk_documentfieldextractionversions_documentid;

ALTER TABLE documentFieldExtractionVersions
DROP COLUMN IF EXISTS documentId;
