Added a utility model to hold information on when a given database dump has been done.
- Legacy-Id: 10480
This commit is contained in:
parent
5a368acc13
commit
29b30c6c3c
24
ietf/utils/migrations/0001_initial.py
Normal file
24
ietf/utils/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='DumpInfo',
|
||||||
|
fields=[
|
||||||
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||||
|
('date', models.DateTimeField()),
|
||||||
|
('host', models.CharField(max_length=128)),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
},
|
||||||
|
bases=(models.Model,),
|
||||||
|
),
|
||||||
|
]
|
0
ietf/utils/migrations/__init__.py
Normal file
0
ietf/utils/migrations/__init__.py
Normal file
8
ietf/utils/models.py
Normal file
8
ietf/utils/models.py
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Copyright The IETF Trust 2015, All Rights Reserved
|
||||||
|
|
||||||
|
from django.db import models
|
||||||
|
|
||||||
|
class DumpInfo(models.Model):
|
||||||
|
date = models.DateTimeField()
|
||||||
|
host = models.CharField(max_length=128)
|
||||||
|
|
Loading…
Reference in a new issue