Very good question. Still trying to wrap my head around the db manager as well. Keep ending back up in Navicat. Would like to eventually get the hang of the db manager.
Actually that is the root of your problem - you have different connection names per target …
and everything is connection name based. So we store the changes per connection name.
Actually those changes are stored just as files, under .wappler/migrations/_connection_name
Then when you switch targets the database manager just checks what of those changes has being applied to the remote database - and allows you to apply the rest.
So everything is much easier that you think all settings are now correctly stored automatically per target and db connection names. No need for any hacks from the past to duplicate db connection settings .
What confused me is, firstly the database setup bit is not in the video as it used docker I suppose
Secondly, in the video from the gathering you can clearly see two different connection names which led me to believe that was necessary.