diff --git a/CHANGELOG.md b/CHANGELOG.md index 4644a09b..8afcc73d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. - Database schema: set Check.user to not null - Database schema: add uniqueness constraint to Check.code - Database schema: add Ping.kind field +- Database schema: remove Ping.start and Ping.fail fields ## 1.4.0 - 2018-12-25 diff --git a/hc/api/migrations/0052_auto_20190104_1122.py b/hc/api/migrations/0052_auto_20190104_1122.py new file mode 100644 index 00000000..0847e7a6 --- /dev/null +++ b/hc/api/migrations/0052_auto_20190104_1122.py @@ -0,0 +1,21 @@ +# Generated by Django 2.1.4 on 2019-01-04 11:22 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('api', '0051_auto_20190104_0908'), + ] + + operations = [ + migrations.RemoveField( + model_name='ping', + name='fail', + ), + migrations.RemoveField( + model_name='ping', + name='start', + ), + ] diff --git a/hc/api/models.py b/hc/api/models.py index f814fe78..3a2185a0 100644 --- a/hc/api/models.py +++ b/hc/api/models.py @@ -248,8 +248,6 @@ class Ping(models.Model): owner = models.ForeignKey(Check, models.CASCADE) created = models.DateTimeField(auto_now_add=True) kind = models.CharField(max_length=6, blank=True, null=True) - start = models.NullBooleanField(default=False) - fail = models.NullBooleanField(default=False) scheme = models.CharField(max_length=10, default="http") remote_addr = models.GenericIPAddressField(blank=True, null=True) method = models.CharField(max_length=10, blank=True)