diff options
Diffstat (limited to 'python/tbc_www/models.py')
-rw-r--r-- | python/tbc_www/models.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/python/tbc_www/models.py b/python/tbc_www/models.py index 2cb327a..efdc13a 100644 --- a/python/tbc_www/models.py +++ b/python/tbc_www/models.py @@ -89,7 +89,7 @@ class BuildLogs(models.Model): def __str__(self): return '%s %s %s %s %s %s %s' % (self.BuildLogId, self.EbuildId, self.Fail, self.SummeryText, self.LogHash, self.BugId, self.TimeStamp) -class BuildLogsRepomanQa(models.Model): +class BuildLogsQa(models.Model): Id = models.IntegerField(primary_key=True, db_column='id') BuildLogId = models.ForeignKey(BuildLogs, db_column='build_log_id') SummeryText = models.TextField(db_column='summery_text') @@ -98,6 +98,17 @@ class BuildLogsRepomanQa(models.Model): def __str__(self): return '%s %s %s' % (self.Id, self.BuildLogId, self.SummeryText) +class PackagesRepoman(models.Model): + Id = models.IntegerField(primary_key=True, db_column='id') + PackageId = models.ForeignKey(Packages, db_column='package_id') + RepomanText = models.TextField(db_column='repoman_text') + RepomanHash = models.CharField(max_length=100, db_column='repoman_hash') + TimeStamp = models.DateTimeField(db_column='time_stamp') + class Meta: + db_table = 'packages_repoman' + def __str__(self): + return '%s %s %s %s %s' % (self.Id, self.PackageId, self.RepomanText, self.RepomanHash, self.TimeStamp) + class ErrorsInfo(models.Model): ErrorId = models.IntegerField(primary_key=True, db_column='error_id') ErrorName = models.CharField(max_length=20, db_column='error_name') |