Chore: silence migration result if no docs

This commit is contained in:
shamoon 2025-05-26 10:31:37 -07:00
parent 4c6fdbb21f
commit 2ada8ec681
No known key found for this signature in database

View File

@ -39,7 +39,8 @@ def migrate_date(apps, schema_editor):
f"[1067_alter_document_created] {total_updated} of {total_checked} processed...",
)
print(f"[1067_alter_document_created] completed for {total_checked} documents.")
if total_checked > 0:
print(f"[1067_alter_document_created] completed for {total_checked} documents.")
class Migration(migrations.Migration):