changeset 3361:14556b463177 beta

mysql indexed keys cannot be larger thatn 256 chars, but 250 is enough for this purpose
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 12 Feb 2013 22:03:54 +0100
parents 85f69bf84d95
children 2dfefa385fde
files rhodecode/model/db.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/db.py	Sun Feb 10 21:05:53 2013 +0100
+++ b/rhodecode/model/db.py	Tue Feb 12 22:03:54 2013 +0100
@@ -679,7 +679,7 @@
 
     repo_field_id = Column("repo_field_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
     repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=False, unique=None, default=None)
-    field_key = Column("field_key", String(1024, convert_unicode=False, assert_unicode=None), nullable=False)
+    field_key = Column("field_key", String(250, convert_unicode=False, assert_unicode=None))
     field_label = Column("field_label", String(1024, convert_unicode=False, assert_unicode=None), nullable=False)
     field_value = Column("field_value", String(10000, convert_unicode=False, assert_unicode=None), nullable=False)
     field_desc = Column("field_desc", String(1024, convert_unicode=False, assert_unicode=None), nullable=False)