aboutsummaryrefslogtreecommitdiff
path: root/rpki/pubdb/models.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-10-25 22:25:40 +0000
committerRob Austein <sra@hactrn.net>2015-10-25 22:25:40 +0000
commit2c749a18db7886b7c9931f2b98eac6f099d304d2 (patch)
treeb4fb16f74a8e5ada8e84add05ef94d865c427383 /rpki/pubdb/models.py
parent95ef1c6d040c015615be01bee36547faf8432791 (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/pubdb/models.py')
-rw-r--r--rpki/pubdb/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpki/pubdb/models.py b/rpki/pubdb/models.py
index 446867b8..2b6d67e4 100644
--- a/rpki/pubdb/models.py
+++ b/rpki/pubdb/models.py
@@ -20,7 +20,7 @@ Django ORM models for pubd.
from __future__ import unicode_literals
from django.db import models
-from rpki.fields import BlobField, CertificateField, SundialField
+from rpki.fields import CertificateField, SundialField
from lxml.etree import Element, SubElement, tostring as ElementToString
import os
@@ -303,7 +303,7 @@ class Delta(models.Model):
class PublishedObject(models.Model):
uri = models.CharField(max_length = 255)
- der = BlobField()
+ der = models.BinaryField()
hash = models.CharField(max_length = 64)
client = models.ForeignKey(Client)
session = models.ForeignKey(Session)