You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.6 KiB

  1. # Generated by Django 2.2.3 on 2019-07-20 13:50
  2. from django.db import migrations, models
  3. import django.utils.timezone
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('api', '0061_webhook_values'),
  7. ]
  8. operations = [
  9. migrations.AlterField(
  10. model_name='channel',
  11. name='kind',
  12. field=models.CharField(choices=[('email', 'Email'), ('webhook', 'Webhook'), ('hipchat', 'HipChat'), ('slack', 'Slack'), ('pd', 'PagerDuty'), ('pagertree', 'PagerTree'), ('pagerteam', 'Pager Team'), ('po', 'Pushover'), ('pushbullet', 'Pushbullet'), ('opsgenie', 'OpsGenie'), ('victorops', 'VictorOps'), ('discord', 'Discord'), ('telegram', 'Telegram'), ('sms', 'SMS'), ('zendesk', 'Zendesk'), ('trello', 'Trello'), ('matrix', 'Matrix'), ('whatsapp', 'WhatsApp')], max_length=20),
  13. ),
  14. migrations.AlterField(
  15. model_name='flip',
  16. name='processed',
  17. field=models.DateTimeField(blank=True, null=True),
  18. ),
  19. migrations.AlterField(
  20. model_name='tokenbucket',
  21. name='updated',
  22. field=models.DateTimeField(default=django.utils.timezone.now),
  23. ),
  24. migrations.AddIndex(
  25. model_name='check',
  26. index=models.Index(condition=models.Q(_negated=True, status='down'), fields=['alert_after'], name='api_check_aa_not_down'),
  27. ),
  28. migrations.AddIndex(
  29. model_name='flip',
  30. index=models.Index(condition=models.Q(processed=None), fields=['processed'], name='api_flip_not_processed'),
  31. ),
  32. ]