title: Convert data_type of table to MEDIUMTEXT or LONGTEXT from Flask-SQLAlchemy
body: <h2>The size of MySQL Text type is 64KB</h2>
  <p>If I want to create a bigger text table, such MEDIUMTEXT or LONGTEXT.</p>
  <p>I have tried the method with String('big number'), such as String(1000000), it works only SQLAlchemy, not in <strong>Flask-SQLAlchemy</strong>.</p>
  <p>So, is the problem in Flaks-SQLAlchemy? or something wrong?</p>
  <h2>Before usage</h2>
  <p>such as:</p>
  <pre><code>from flask_sqlalchemy import SQLAlchemy
  
  db = SQLAlchemy()
  
  class Post(db.Model):
      title = db.Column(db.String(60))
      body = db.Column(db.Text())
  </code></pre>
  <h2>Current Usage and it Works!</h2>
  <pre><code>from flask_sqlalchemy import SQLAlchemy
  
  db = SQLAlchemy()
  
  class Post(db.Model):
      title = db.Column(db.String(60))
      body = db.Column(db.Text(10000000))
  </code></pre>
  <p>The bigger number in Text() will automatily create a big text data type in MySQL. 10000000 will convert to longtext.</p>