Some scripts 

get-latest-dumps

restore-db

psql -d source -f pre-merge-source-fixes.sql
psql -d target -f pre-merge-target-fixes.sql

merge-myapp

psql -d target -f post-merge-target-fixes.sql