Browse Source

Remove Ping.start and Ping.fail fields

pull/211/head
Pēteris Caune 6 years ago
parent
commit
4f2930bb05
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
3 changed files with 22 additions and 2 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +21
    -0
      hc/api/migrations/0052_auto_20190104_1122.py
  3. +0
    -2
      hc/api/models.py

+ 1
- 0
CHANGELOG.md 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


+ 21
- 0
hc/api/migrations/0052_auto_20190104_1122.py 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',
),
]

+ 0
- 2
hc/api/models.py 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)


Loading…
Cancel
Save