0020_set_dj_partial_indexes.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Generated by Django 2.2.1 on 2019-05-18 16:59
  2. from django.db import migrations, models
  3. class Migration(migrations.Migration):
  4. dependencies = [("misago_users", "0019_remove_custom_partial_indexes")]
  5. operations = [
  6. migrations.AddIndex(
  7. model_name="user",
  8. index=models.Index(
  9. condition=models.Q(is_staff=True),
  10. fields=["is_staff"],
  11. name="misago_user_is_staff_part",
  12. ),
  13. ),
  14. migrations.AddIndex(
  15. model_name="user",
  16. index=models.Index(
  17. condition=models.Q(requires_activation__gt=0),
  18. fields=["requires_activation"],
  19. name="misago_user_requires_acti_part",
  20. ),
  21. ),
  22. migrations.AddIndex(
  23. model_name="user",
  24. index=models.Index(
  25. condition=models.Q(is_deleting_account=True),
  26. fields=["is_deleting_account"],
  27. name="misago_user_is_deleting_a_part",
  28. ),
  29. ),
  30. ]