From c126f7d0a2388689e8cca8d0da0470653be76bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Sat, 27 Jan 2018 14:37:36 +0200 Subject: [PATCH] Converting api_ping.id from integer to bigint. --- hc/api/migrations/0037_auto_20180127_1215.py | 20 ++++++++++++++++++++ hc/api/models.py | 1 + 2 files changed, 21 insertions(+) create mode 100644 hc/api/migrations/0037_auto_20180127_1215.py diff --git a/hc/api/migrations/0037_auto_20180127_1215.py b/hc/api/migrations/0037_auto_20180127_1215.py new file mode 100644 index 00000000..82d631f1 --- /dev/null +++ b/hc/api/migrations/0037_auto_20180127_1215.py @@ -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), + ), + ] diff --git a/hc/api/models.py b/hc/api/models.py index 3bafa42e..c2d239ea 100644 --- a/hc/api/models.py +++ b/hc/api/models.py @@ -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)