[snowy] Adjust NoteTag.name max length to work with mysql innodb



commit 1f9cbd6b8e4bce2c2b948f53a72b390e5c002582
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Sun Sep 12 10:56:00 2010 -0700

    Adjust NoteTag.name max length to work with mysql innodb
    
    mysql innodb has a 767 byte limit on key length, which matters because
    we make NoteTag.name unique. Because it's a utf8 CharField, this restricts
    us to 255 characters:
    
    http://groups.google.com/group/django-users/browse_thread/thread/ad168ccea8412e0f/d70bfee1988ba8cf?#d70bfee1988ba8cf

 notes/models.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/notes/models.py b/notes/models.py
index c01ae53..af5bd1b 100644
--- a/notes/models.py
+++ b/notes/models.py
@@ -78,7 +78,7 @@ class Note(models.Model):
 
 class NoteTag(models.Model):
     author = models.ForeignKey(User)
-    name = models.CharField(max_length=256)
+    name = models.CharField(max_length=255)
     is_notebook = models.BooleanField(default=False)
 
     class Meta:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]