FIX: wrong change of userdefined adapter
Add constant to change the migration_template