diff --git a/keep/api/models/db/alert.py b/keep/api/models/db/alert.py index 8c149918b..7f540c16c 100644 --- a/keep/api/models/db/alert.py +++ b/keep/api/models/db/alert.py @@ -10,7 +10,7 @@ from sqlalchemy.dialects.mysql import DATETIME as MySQL_DATETIME from sqlalchemy.engine.url import make_url from sqlalchemy_utils import UUIDType -from sqlmodel import JSON, Column, DateTime, Field, Index, Relationship, SQLModel +from sqlmodel import JSON, TEXT, Column, DateTime, Field, Index, Relationship, SQLModel from keep.api.consts import RUNNING_IN_CLOUD_RUN from keep.api.core.config import config @@ -170,7 +170,7 @@ class AlertAudit(SQLModel, table=True): user_id: str = Field(nullable=False) # what action: str = Field(nullable=False) - description: str + description: str = Field(sa_column=Column(TEXT)) __table_args__ = ( Index("ix_alert_audit_tenant_id", "tenant_id"),