From 5819a0637f64b65de231a59def0b770ed9ae1270 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 5 Dec 2021 22:56:05 +0100 Subject: [PATCH] fix(models): Notification.plugin should be bigger to support FQN as value --- flaschengeist/models/notification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaschengeist/models/notification.py b/flaschengeist/models/notification.py index 574b089..9431c17 100644 --- a/flaschengeist/models/notification.py +++ b/flaschengeist/models/notification.py @@ -10,7 +10,7 @@ from .user import User class Notification(db.Model, ModelSerializeMixin): __tablename__ = "notification" id: int = db.Column("id", Serial, primary_key=True) - plugin: str = db.Column(db.String(30), nullable=False) + plugin: str = db.Column(db.String(127), nullable=False) text: str = db.Column(db.Text) data: Any = db.Column(db.PickleType(protocol=4)) time: datetime = db.Column(UtcDateTime, nullable=False, default=UtcDateTime.current_utc)