shameful late edit: change comment text collation to utf8mb4

This commit is contained in:
nyaadev
2017-05-23 00:36:53 +02:00
parent 3fc347d049
commit 8ef6e915da
2 changed files with 3 additions and 3 deletions

View File

@@ -329,7 +329,7 @@ class Comment(db.Model):
DB_TABLE_PREFIX + 'torrents.id', ondelete='CASCADE'), nullable=False)
user_id = db.Column(db.Integer, db.ForeignKey('users.id', ondelete='CASCADE'))
created_time = db.Column(db.DateTime(timezone=False), default=datetime.utcnow)
text = db.Column(db.String(length=255), nullable=False)
text = db.Column(db.String(length=255, collation=COL_UTF8MB4_BIN), nullable=False)
user = db.relationship('User', uselist=False, back_populates='comments', lazy="joined")