forked from sonus21/error-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0001_initial.py
More file actions
35 lines (29 loc) · 1.18 KB
/
0001_initial.py
File metadata and controls
35 lines (29 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Generated by Django 2.2.7 on 2019-11-29 07:29
from django.db import migrations, models
import error_tracker.libs.mixins
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ErrorModel',
fields=[
('hash', models.CharField(max_length=64, primary_key=True, serialize=False)),
('host', models.CharField(max_length=1024)),
('path', models.CharField(max_length=4096)),
('method', models.CharField(max_length=64)),
('request_data', models.TextField()),
('exception_name', models.CharField(max_length=256)),
('traceback', models.TextField()),
('count', models.IntegerField(default=0)),
('created_on', models.DateTimeField(auto_now=True)),
('last_seen', models.DateTimeField(auto_now=True, db_index=True)),
],
options={
'db_table': 'exceptions',
'swappable': 'APP_ERROR_DB_MODEL',
},
bases=(models.Model, error_tracker.libs.mixins.ModelMixin),
),
]