Hi AlJoharah,
When you publish a module, OutSystems will try to make the necessary changes to the database automatically but sometimes due to constraints like that it is not possible.
In order to publish, you can add a new field of the type Department Identifier (e.g. DepartmentId) and remove the attribute DepatrmentName. With that, you should be able to publish.
Just take into account that the records you had already on that table will have the new field with its default null value.
Hope it helps.
Regards,
João