diff options
author | Rob Austein <sra@hactrn.net> | 2016-04-23 15:03:32 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-04-23 15:03:32 +0000 |
commit | f81321b26b8112dc971288ec116aa64178dd3259 (patch) | |
tree | 8ce05d259a2ffce07fb6c585287df7291668e2b4 /rpki/irdb/migrations | |
parent | 9fbe58912e66c98ca3ad8f20abfae27b29c977d5 (diff) |
Initial version of rpki.irdb.models.Root. May end up folding this
into an expanded rpki.irdb.models.Parent, as the two are more alike
than I expected them to be, but archive this version first.
svn path=/branches/tk705/; revision=6375
Diffstat (limited to 'rpki/irdb/migrations')
-rw-r--r-- | rpki/irdb/migrations/0002_root.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/rpki/irdb/migrations/0002_root.py b/rpki/irdb/migrations/0002_root.py new file mode 100644 index 00000000..73c08dde --- /dev/null +++ b/rpki/irdb/migrations/0002_root.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import rpki.irdb.models +import rpki.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('irdb', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='Root', + fields=[ + ('turtle_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='irdb.Turtle')), + ('certificate', rpki.fields.CertificateField()), + ('handle', rpki.irdb.models.HandleField(max_length=120)), + ('ta', rpki.fields.CertificateField()), + ('asn_resources', models.TextField()), + ('ipv4_resources', models.TextField()), + ('ipv6_resources', models.TextField()), + ('issuer', models.OneToOneField(related_name='root', to='irdb.ResourceHolderCA')), + ], + bases=('irdb.turtle', models.Model), + ), + migrations.AlterUniqueTogether( + name='root', + unique_together=set([('issuer', 'handle')]), + ), + ] |