Removed the title length limit for news articles (#457)

This commit is contained in:
Philipp Horstenkamp 2023-12-14 18:14:24 +01:00 committed by GitHub
parent 3b6ee329e4
commit d1736db653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ class News(Base):
__tablename__ = "news"
id = sa.Column(sa.Integer, primary_key=True, autoincrement=True)
title = sa.Column(sa.String(150), nullable=False)
title = sa.Column(sa.String(), nullable=False)
timestamp = sa.Column(sa.DateTime(), nullable=False)
text = sa.Column(sa.String(), nullable=False)
source_url = sa.Column(sa.String, nullable=False)