HCL Connections 7.0 : how fix possible issue on side by side database migration with dbt.jar for Wikis,Files and Metrics db

In this period I'm working on HCL Connections migrations from 6.0 to 7.0 and I'm using the side by side approach. While I'm during this job, I prefer to use the dbt.jar for database migrations because this could help me to identify and fix issue at db schema level. In this migrations I had some issue with Wikis, Files (the same for both db) and Metrics
This is a companion discussion topic for the original entry at https://blog.msbiro.net/2022/04/hcl-migration-database-issue-with-dbt.jar-for-wikis-files-metrics-how-fix-it.html