Author: justi9
Date: 2010-07-30 17:59:05 -0400 (Fri, 30 Jul 2010)
New Revision: 4176
Modified:
mgmt/newdata/rosemary/python/rosemary/model.py
Log:
Don't delete samples with objects; it's too taxing
Modified: mgmt/newdata/rosemary/python/rosemary/model.py
===================================================================
--- mgmt/newdata/rosemary/python/rosemary/model.py 2010-07-30 21:43:09 UTC (rev 4175)
+++ mgmt/newdata/rosemary/python/rosemary/model.py 2010-07-30 21:59:05 UTC (rev 4176)
@@ -313,10 +313,8 @@
parent_col = SqlColumn(self.sql_samples_table, name, sql_int8)
parent_col.foreign_key_column = id_col
- table = self.sql_samples_table
- name = "%s_fk" % parent_col.name
- constraint = SqlForeignKeyConstraint(table, name, parent_col, id_col)
- constraint.on_delete = "cascade"
+ name = "%s_%s_index" % (self._name, parent_col.name)
+ index = SqlIndex(self._package.sql_schema, name, (parent_col,))
name = "_qmf_update_time"
SqlColumn(self.sql_samples_table, name, sql_timestamp)
Show replies by date