Browse Source

Converting api_ping.id from integer to bigint.

pull/154/head
Pēteris Caune 7 years ago
parent
commit
c126f7d0a2
2 changed files with 21 additions and 0 deletions
  1. +20
    -0
      hc/api/migrations/0037_auto_20180127_1215.py
  2. +1
    -0
      hc/api/models.py

+ 20
- 0
hc/api/migrations/0037_auto_20180127_1215.py 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),
),
]

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


Loading…
Cancel
Save