Listens for onMigrationsMigrated and, if the connection has autocommit makes sure to do the final commit to ensure changes stick around.