<filename>api/src/main/resources/db/migration/v2017.12.12_17.00__Metadata_constraint_update.sql
ALTER TABLE PIPELINE.METADATA_ENTITY DROP CONSTRAINT IF EXISTS UNIQUE_ME_2;
ALTER TABLE PIPELINE.METADATA_ENTITY ADD CONSTRAINT UNIQUE_ME_2 UNIQUE(CLASS_ID,PARENT_ID,EXTERNAL_ID);
