Extended Migrations with config

Migrations are now getting the config as parameter to enable them to react on different settings