Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sqlalchemy type for very long text for articles

What type should I define in my sqlalchemy definition for text for a article or blog entry? I'm using MySQL.

Column('article_text', ???)
like image 644
Blankman Avatar asked Feb 09 '11 02:02

Blankman


1 Answers

Column('article_text', sqlalchemy.UnicodeText())

That should work on any supported database, not just mysql.

like image 58
nosklo Avatar answered Nov 02 '22 04:11

nosklo