This repository has been archived on 2023-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
takahe/stator/migrations/0002_stats_delete_statorerror.py
Andrew Godwin 1130c23b1e Stator stats overhaul
Removes the error table, adds a stats table and admin page.
Fixes #166
2022-12-15 12:26:44 -07:00

32 lines
835 B
Python

# Generated by Django 4.1.4 on 2022-12-15 18:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("stator", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="Stats",
fields=[
(
"model_label",
models.CharField(max_length=200, primary_key=True, serialize=False),
),
("statistics", models.JSONField()),
("created", models.DateTimeField(auto_now_add=True)),
("updated", models.DateTimeField(auto_now=True)),
],
options={
"verbose_name_plural": "Stats",
},
),
migrations.DeleteModel(
name="StatorError",
),
]