remove existing publish name as unqiue constraint as it's possible that 2 doc have the same name different workspace with different publish_namespace.
added unique constraint on (workspace_id, publish_name) as it is not possible(must not) that workspace contains 2 published doc having same publish_name