migrate on deploy + set_patterns fix