forked from GithubBackups/healthchecks
api_check.code should be indexed
This commit is contained in:
parent
34060b7968
commit
88bd760925
20
hc/api/migrations/0014_auto_20151019_2039.py
Normal file
20
hc/api/migrations/0014_auto_20151019_2039.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
import uuid
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('api', '0013_auto_20151001_2029'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='check',
|
||||||
|
name='code',
|
||||||
|
field=models.UUIDField(default=uuid.uuid4, db_index=True, editable=False),
|
||||||
|
),
|
||||||
|
]
|
@ -26,7 +26,7 @@ CHANNEL_KINDS = (("email", "Email"), ("webhook", "Webhook"),
|
|||||||
|
|
||||||
class Check(models.Model):
|
class Check(models.Model):
|
||||||
name = models.CharField(max_length=100, blank=True)
|
name = models.CharField(max_length=100, blank=True)
|
||||||
code = models.UUIDField(default=uuid.uuid4, editable=False)
|
code = models.UUIDField(default=uuid.uuid4, editable=False, db_index=True)
|
||||||
user = models.ForeignKey(User, blank=True, null=True)
|
user = models.ForeignKey(User, blank=True, null=True)
|
||||||
created = models.DateTimeField(auto_now_add=True)
|
created = models.DateTimeField(auto_now_add=True)
|
||||||
timeout = models.DurationField(default=DEFAULT_TIMEOUT)
|
timeout = models.DurationField(default=DEFAULT_TIMEOUT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user