Skip to content

Commit

Permalink
Converting api_ping.id from integer to bigint.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuu508 committed Jan 27, 2018
1 parent 0942115 commit c126f7d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions hc/api/migrations/0037_auto_20180127_1215.py
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions hc/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def ping(self, remote_addr, scheme, method, ua, body):


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)
Expand Down

0 comments on commit c126f7d

Please sign in to comment.