Add migration of attributes to query string