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.

61 lines
1.8 KiB

  1. # Generated by Django 2.1.4 on 2018-12-10 15:15
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [("api", "0044_auto_20181120_2004")]
  6. operations = [
  7. migrations.CreateModel(
  8. name="Flip",
  9. fields=[
  10. (
  11. "id",
  12. models.AutoField(
  13. auto_created=True,
  14. primary_key=True,
  15. serialize=False,
  16. verbose_name="ID",
  17. ),
  18. ),
  19. ("created", models.DateTimeField()),
  20. (
  21. "processed",
  22. models.DateTimeField(blank=True, db_index=True, null=True),
  23. ),
  24. (
  25. "old_status",
  26. models.CharField(
  27. choices=[
  28. ("up", "Up"),
  29. ("down", "Down"),
  30. ("new", "New"),
  31. ("paused", "Paused"),
  32. ],
  33. max_length=8,
  34. ),
  35. ),
  36. (
  37. "new_status",
  38. models.CharField(
  39. choices=[
  40. ("up", "Up"),
  41. ("down", "Down"),
  42. ("new", "New"),
  43. ("paused", "Paused"),
  44. ],
  45. max_length=8,
  46. ),
  47. ),
  48. (
  49. "owner",
  50. models.ForeignKey(
  51. on_delete=django.db.models.deletion.CASCADE, to="api.Check"
  52. ),
  53. ),
  54. ],
  55. )
  56. ]