healthchecks_healthchecks/hc/api/migrations/0045_flip.py
2019-05-15 14:27:50 +03:00

62 lines
1.8 KiB
Python

# Generated by Django 2.1.4 on 2018-12-10 15:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("api", "0044_auto_20181120_2004")]
operations = [
migrations.CreateModel(
name="Flip",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created", models.DateTimeField()),
(
"processed",
models.DateTimeField(blank=True, db_index=True, null=True),
),
(
"old_status",
models.CharField(
choices=[
("up", "Up"),
("down", "Down"),
("new", "New"),
("paused", "Paused"),
],
max_length=8,
),
),
(
"new_status",
models.CharField(
choices=[
("up", "Up"),
("down", "Down"),
("new", "New"),
("paused", "Paused"),
],
max_length=8,
),
),
(
"owner",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="api.Check"
),
),
],
)
]