migrations: Disable atomic flag on migration 0354.

I believe that this migration with the default of atomic=True will
fail when trying to convert the field to PositiveIntegerField if there
were any 0 values present in the database when the migration began.
The fix is to have each of the steps be their own transaction.
This commit is contained in:
Tim Abbott 2021-10-03 19:12:46 -07:00
parent fb94e959c8
commit 3531afd754
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ def reverse_make_zero_invalid_for_message_delete_limit(
class Migration(migrations.Migration):
atomic = False
dependencies = [
("zerver", "0353_remove_realm_default_twenty_four_hour_time"),