dnmapper/bgpdata/migrations/0003_crawllog.py

29 lines
1012 B
Python
Raw Normal View History

2015-03-23 01:42:31 +01:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('bgpdata', '0002_confighost_name'),
]
operations = [
migrations.CreateModel(
name='CrawlLog',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('logtime', models.DateTimeField(auto_now_add=True)),
('severity', models.CharField(max_length=10, choices=[(b'INFO', b'info'), (b'ERROR', b'error'), (b'DEBUG', b'debug'), (b'WARN', b'warning')])),
('message', models.TextField()),
2020-06-06 22:01:51 +02:00
('crawl', models.ForeignKey(to='bgpdata.CrawlRun', on_delete=models.CASCADE)),
('host', models.ForeignKey(to='bgpdata.ConfigHost', on_delete=models.SET_NULL)),
2015-03-23 01:42:31 +01:00
],
options={
},
bases=(models.Model,),
),
]