Shrinking fail_reason column

This commit is contained in:
Andrew Melton 2013-06-03 13:46:32 -04:00
parent 9cc3f57262
commit fc1419df52
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
ALTER TABLE stacktach_instanceexists MODIFY `fail_reason` varchar(300);

View File

@ -130,7 +130,7 @@ class InstanceExists(models.Model):
status = models.CharField(max_length=50, db_index=True,
choices=STATUS_CHOICES,
default=PENDING)
fail_reason = models.CharField(max_length=500, null=True,
fail_reason = models.CharField(max_length=300, null=True,
blank=True, db_index=True)
raw = models.ForeignKey(RawData, related_name='+', null=True)
usage = models.ForeignKey(InstanceUsage, related_name='+', null=True)