From 3908e12ca467b2e43f2989cfc8d4dea91cae6e96 Mon Sep 17 00:00:00 2001 From: jeffrey forman Date: Thu, 14 Feb 2019 07:52:02 -0500 Subject: [PATCH] add initial 0001 binder migration --- binder/migrations/0001_initial.py | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 binder/migrations/0001_initial.py diff --git a/binder/migrations/0001_initial.py b/binder/migrations/0001_initial.py new file mode 100644 index 0000000..e2bd559 --- /dev/null +++ b/binder/migrations/0001_initial.py @@ -0,0 +1,44 @@ +# Generated by Django 2.1.7 on 2019-02-14 01:37 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='BindServer', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('hostname', models.CharField(help_text='Host name or IP address of the BIND server.', max_length=255, unique=True)), + ('dns_port', models.IntegerField(default=53, help_text='The port where the BIND server is listening for DNS requests. binder especially uses that port for the dynamic zone updates. In most cases you should always leave it at the default port 53.', verbose_name='DNS port')), + ('statistics_port', models.IntegerField(help_text='Port where the BIND server is serving statistics on.')), + ], + options={ + 'ordering': ['hostname'], + }, + ), + migrations.CreateModel( + name='Key', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(help_text='A human readable name for the key to store, used for further references to the key.', max_length=255, unique=True)), + ('data', models.CharField(help_text='The private part of the TSIG key.', max_length=255)), + ('algorithm', models.CharField(choices=[('HMAC-MD5.SIG-ALG.REG.INT', 'MD5'), ('hmac-sha1', 'SHA1'), ('hmac-sha256', 'SHA256'), ('hmac-sha384', 'SHA384'), ('hmac-sha512', 'SHA512')], help_text='The algorithm which has been used for the key.', max_length=255)), + ], + options={ + 'ordering': ['name'], + }, + ), + migrations.AddField( + model_name='bindserver', + name='default_transfer_key', + field=models.ForeignKey(blank=True, help_text='The default key to use for all actions with this DNS server as long as no other key is specified explicitly.', null=True, on_delete=django.db.models.deletion.CASCADE, to='binder.Key'), + ), + ]