r5415 - trunk/rosemary/python/rosemary

tmckay at fedoraproject.org tmckay at fedoraproject.org
Thu Jun 14 20:14:04 UTC 2012


Author: tmckay
Date: 2012-06-14 20:14:04 +0000 (Thu, 14 Jun 2012)
New Revision: 5415

Modified:
   trunk/rosemary/python/rosemary/model.py
Log:
Allow statistics to always be null in main tables


Modified: trunk/rosemary/python/rosemary/model.py
===================================================================
--- trunk/rosemary/python/rosemary/model.py	2012-06-14 18:03:33 UTC (rev 5414)
+++ trunk/rosemary/python/rosemary/model.py	2012-06-14 20:14:04 UTC (rev 5415)
@@ -1032,7 +1032,8 @@
         type = sql_types_by_qmf_type_string[self.type]
 
         self.sql_column = SqlColumn(self.cls.sql_table, self.name, type)
-        self.sql_column.nullable = self.optional
+        # always let stats be optional in the main table
+        self.sql_column.nullable = True
 
         col = SqlColumn(self.cls.sql_samples_table, self.name, type)
         col.nullable = self.optional



More information about the cumin-developers mailing list