diff options
author | Rob Austein <sra@hactrn.net> | 2015-10-25 22:25:40 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-10-25 22:25:40 +0000 |
commit | 2c749a18db7886b7c9931f2b98eac6f099d304d2 (patch) | |
tree | b4fb16f74a8e5ada8e84add05ef94d865c427383 /rpki/rpkidb/models.py | |
parent | 95ef1c6d040c015615be01bee36547faf8432791 (diff) |
Tweak binary field types to get SQLite3 working as a Django ORM
backend. Switch yamltest's default database configuration to sqlite3.
MySQL still has character set issues, which are almost certainly to do
with the communication channel rather than the database tables. It's
possible that one of the newer DB API drivers for MySQL fixes this,
might be worth trying one of them at some point (see the "MySQL notes"
discussion of MySQL DB API drivers in the Django documentation).
svn path=/branches/tk705/; revision=6149
Diffstat (limited to 'rpki/rpkidb/models.py')
-rw-r--r-- | rpki/rpkidb/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpki/rpkidb/models.py b/rpki/rpkidb/models.py index 2d99df7c..32028a1f 100644 --- a/rpki/rpkidb/models.py +++ b/rpki/rpkidb/models.py @@ -18,7 +18,7 @@ from django.db import models import rpki.left_right -from rpki.fields import (EnumField, SundialField, BlobField, +from rpki.fields import (EnumField, SundialField, CertificateField, RSAPrivateKeyField, PublicKeyField, CRLField, PKCS10Field, ManifestField, ROAField, GhostbusterField) @@ -1705,7 +1705,7 @@ class Child(models.Model): class ChildCert(models.Model): cert = CertificateField() published = SundialField(null = True) - ski = BlobField() + ski = models.BinaryField() child = models.ForeignKey(Child, related_name = "child_certs") ca_detail = models.ForeignKey(CADetail, related_name = "child_certs") @@ -1820,7 +1820,7 @@ class ChildCert(models.Model): class EECertificate(models.Model): - ski = BlobField() + ski = models.BinaryField() cert = CertificateField() published = SundialField(null = True) tenant = models.ForeignKey(Tenant, related_name = "ee_certificates") |