diff --git a/gracedb/models.py b/gracedb/models.py index 2707c080d2fc39f3158e97a1e9aaefd4145bcfb7..6c7b25171d9975bde7b2d77dc559308d2685106f 100644 --- a/gracedb/models.py +++ b/gracedb/models.py @@ -97,7 +97,12 @@ class Event(models.Model): uid = models.CharField(max_length=20, default="") # XXX deprecated. should be removed. #analysisType = models.CharField(max_length=20, choices=ANALYSIS_TYPE_CHOICES) - pipeline = models.ForeignKey(Pipeline, default=DEFAULT_PIPELINE_ID) + # Note: a default value is needed only during the schema migration + # that creates this column. After that, we can safely remove it. + # The presence or absence of the default value has no effect on the DB + # tables, so removing it does not necessitate a migration. + #pipeline = models.ForeignKey(Pipeline, default=DEFAULT_PIPELINE_ID) + pipeline = models.ForeignKey(Pipeline) search = models.ForeignKey(Search, null=True) # from coinc_event