0003_auto_20211127_0159.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Generated by Django 3.2.9 on 2021-11-27 01:59
  2. import datetime
  3. import django.core.validators
  4. from django.db import migrations, models
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. ("uptime", "0002_auto_20210822_1617"),
  8. ]
  9. operations = [
  10. migrations.RemoveField(
  11. model_name="monitor",
  12. name="ip_address",
  13. ),
  14. migrations.AlterField(
  15. model_name="monitor",
  16. name="interval",
  17. field=models.DurationField(
  18. default=datetime.timedelta(seconds=60),
  19. validators=[
  20. django.core.validators.MaxValueValidator(
  21. datetime.timedelta(seconds=86399)
  22. )
  23. ],
  24. ),
  25. ),
  26. migrations.AlterField(
  27. model_name="monitor",
  28. name="monitor_type",
  29. field=models.CharField(
  30. choices=[
  31. ("Ping", "Ping"),
  32. ("GET", "Get"),
  33. ("POST", "Post"),
  34. ("SSL", "Ssl"),
  35. ("Heartbeat", "Heartbeat"),
  36. ],
  37. default="Ping",
  38. max_length=12,
  39. ),
  40. ),
  41. migrations.AlterField(
  42. model_name="monitor",
  43. name="url",
  44. field=models.URLField(blank=True, max_length=2000),
  45. ),
  46. ]