SF.net SVN: gar:[23709] csw/mgar/gar/v2/lib/python/models.py

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Tue May 27 17:25:49 CEST 2014


Revision: 23709
          http://sourceforge.net/p/gar/code/23709
Author:   cgrzemba
Date:     2014-05-27 15:25:47 +0000 (Tue, 27 May 2014)
Log Message:
-----------
limit index key length to prevent warning, see http://bugs.mysql.com/bug.php?id=68453

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/models.py

Modified: csw/mgar/gar/v2/lib/python/models.py
===================================================================
--- csw/mgar/gar/v2/lib/python/models.py	2014-05-27 15:24:13 UTC (rev 23708)
+++ csw/mgar/gar/v2/lib/python/models.py	2014-05-27 15:25:47 UTC (rev 23709)
@@ -145,7 +145,7 @@
   pkginst = sqlobject.ForeignKey('Pkginst', notNone=True)
   srv4_file = sqlobject.ForeignKey('Srv4FileStats')
   basename_idx = sqlobject.DatabaseIndex('basename')
-  path_idx = sqlobject.DatabaseIndex('path')
+  path_idx = sqlobject.DatabaseIndex({'column': 'path', 'length': 255})
 
   def FullPath(self):
     return os.path.join(self.path, self.basename)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list