Add check constraints on t_etl_target_variable
Motivation
- sometimes duplicates in this table occurs when new target variable is accidentally assigned to some TV in target DB which is already paired to one previously etled
Solution
- add unique on columns export_connection and etl_id
- also unique on combination of export_connection and target_variable can be useful