diff --git a/database/models/reports.py b/database/models/reports.py index d32188733..08ae895f8 100644 --- a/database/models/reports.py +++ b/database/models/reports.py @@ -334,9 +334,18 @@ class TestResultReportTotals(CodecovBaseModel, MixinBaseClass): error = Column(types.String(100), nullable=True) -class ReducedError(CodecovBaseModel, MixinBaseClass): +class ReducedError(CodecovBaseModel): __tablename__ = "reports_reducederror" + id_ = Column("id", types.BigInteger, primary_key=True) message = Column(types.Text) + created_at = Column(types.DateTime(timezone=True), default=get_utc_now) + updated_at = Column( + types.DateTime(timezone=True), onupdate=get_utc_now, default=get_utc_now + ) + + @property + def id(self): + return self.id_ class Flake(CodecovBaseModel, MixinBaseClassNoExternalID):