healthchecks/hc/api/migrations/0021_ping_n.py
Pēteris Caune 1e3285423f Ping objects get "n" field, their serial numbers, used in "log page". "fillnpings" management command initially populates this field (it touches every ping so it takes time to complete).
Check.n_pings now stores the total number of pings the check has ever received. Running "prunepings" command doesn't affect this field. +a new "prunepingsslow" command which works in smaller chunks so is appropriate for initial pruning of a huge api_ping table.
2016-01-03 18:11:12 +02:00

21 lines
429 B
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-03 09:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0020_check_n_pings'),
]
operations = [
migrations.AddField(
model_name='ping',
name='n',
field=models.IntegerField(null=True),
),
]