title: How can I initialize the database automatically with SQLalchemy and Alembic?
body: <p>Currently, I run</p>
  
  <pre><code>$ flask db init
  $ flask db migrate -m "initialization"
  $ flask db upgrade
  </code></pre>
  
  <p>if the database does not exist. I would like to run this within Python, e.g. something like</p>
  
  <pre><code>app.create_db()
  </code></pre>
  
  <p>so that I don't have to care about setting the database up. Is that possible?</p>
  
  <p>I use the <code>flask-sqlalchemy</code> and <code>flask-migrations</code> plugins</p>