Permalink
Browse files

Change field length to support MySQL

MySQL has a key limit of 767 bytes in some cases, and 256*3 bytes = 768

Changed field length to 255 to bring key down to 765 bytes.
  • Loading branch information...
Andreas Knab
Andreas Knab committed Feb 7, 2012
1 parent ef51107 commit 0c956243a1b924e68c3cdede0788b50adb94a5d2
Showing with 1 addition and 1 deletion.
  1. +1 −1 rooibos/migration/models.py
@@ -11,7 +11,7 @@ class ObjectHistory(models.Model):
m2m_object_id = models.PositiveIntegerField(null=True)
m2m_content_object = generic.GenericForeignKey('m2m_content_type', 'm2m_object_id')
type = models.CharField(max_length=8, null=True, db_index=True)
- original_id = models.CharField(max_length=256, db_index=True)
+ original_id = models.CharField(max_length=255, db_index=True)
content_hash = models.CharField(max_length=32)

0 comments on commit 0c95624

Please sign in to comment.