Backport of 9c19aff7c7 from main.
9c19aff7c7
Added the Migration.atomic attribute which can be set to False for non-atomic migrations.