Remove Ping.start and Ping.fail fields

This commit is contained in:
Pēteris Caune 2019-01-04 13:25:58 +02:00
parent 20df5843e3
commit 4f2930bb05
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
3 changed files with 22 additions and 2 deletions

View File

@ -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

View File

@ -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',
),
]

View File

@ -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)