Converting api_ping.id from integer to bigint.

This commit is contained in:
Pēteris Caune 2018-01-27 14:37:36 +02:00
parent 09421153f5
commit c126f7d0a2
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-27 12:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0036_auto_20180116_2243'),
]
operations = [
migrations.AlterField(
model_name='ping',
name='id',
field=models.BigAutoField(primary_key=True, serialize=False),
),
]

View File

@ -207,6 +207,7 @@ class Check(models.Model):
class Ping(models.Model):
id = models.BigAutoField(primary_key=True)
n = models.IntegerField(null=True)
owner = models.ForeignKey(Check, models.CASCADE)
created = models.DateTimeField(auto_now_add=True)