Explorar o código

[oozie] Remove unused and invalid unique_together indexes

We were using unique_together incorrectly here, it should be under a
<model>.Meta class. However, the oozie1 app is on it's way out, so I'm
just going to remove these references so they don't confuse anyone else
in the future.
Erick Tryzelaar %!s(int64=10) %!d(string=hai) anos
pai
achega
f36cb2b
Modificáronse 1 ficheiros con 0 adicións e 8 borrados
  1. 0 8
      apps/oozie/src/oozie/models.py

+ 0 - 8
apps/oozie/src/oozie/models.py

@@ -129,7 +129,6 @@ class Job(models.Model):
   data = models.TextField(blank=True, default=json.dumps({}))  # e.g. data=json.dumps({'sla': [python data], ...})
 
   objects = JobManager()
-  unique_together = ('owner', 'name')
 
   def delete(self, skip_trash=False, *args, **kwargs):
     if skip_trash:
@@ -643,8 +642,6 @@ class Node(models.Model):
   children = models.ManyToManyField('self', related_name='parents', symmetrical=False, through=Link)
   data = models.TextField(blank=True, default=json.dumps({}))
 
-  unique_together = ('workflow', 'name')
-
   def get_full_node(self):
     if self.node_type == Mapreduce.node_type:
       node = self.mapreduce
@@ -1677,7 +1674,6 @@ class Dataset(models.Model):
                                help_text=_t('Optional: Shift the frequency for gettting past/future end dates or enter verbatim the Oozie end instance.'))
 
   objects = DatasetManager()
-  unique_together = ('coordinator', 'name')
 
   def __unicode__(self):
     return '%s' % (self.name,)
@@ -1731,8 +1727,6 @@ class DataInput(models.Model):
                                  help_text=_t('The pattern of the input data we want to process.'))
   coordinator = models.ForeignKey(Coordinator)
 
-  unique_together = ('coordinator', 'name')
-
 
 class DataOutput(models.Model):
   name = models.CharField(max_length=40, validators=[name_validator], verbose_name=_t('Name of an output variable in the workflow'),
@@ -1741,8 +1735,6 @@ class DataOutput(models.Model):
                                  help_text=_t('The pattern of the output data we want to generate.'))
   coordinator = models.ForeignKey(Coordinator)
 
-  unique_together = ('coordinator', 'name')
-
 
 class BundledCoordinator(models.Model):
   bundle = models.ForeignKey('Bundle', verbose_name=_t('Bundle'),