Currently, if a column's remote_name is already mapped for a column, in the connection, it will add an additional mapping for the same remote_name.
It should remove the old mapping, if it exists for a different local_name.
Changes
Generally reformatted the Datasource.enforce_column
Should improve readability
Added better error messaging
Logic for updating MappingCols for the connection/extract will now delete any old mapping for the same remote_name
Summary
Currently, if a column's remote_name is already mapped for a column, in the connection, it will add an additional mapping for the same remote_name. It should remove the old mapping, if it exists for a different local_name.
Changes