Micro Services Classroom Series – 21/Nov/2021

Creating Models and Database Connections using Flask-SQLAlchemy

  • Refer Here for the official docs.
  • Also for understanding types and filling columns Refer Here
  • Refer Here for the changes done to use the recipe from the database.
  • Now lets perform database migration by opening the terminal in pycharm and executing flask db init Preview
  • A new folder called migration has created Refer Here
  • Now run the flask db migrate command to create database and tables in the versions Preview
  • Now run the flask db upgrade Preview Preview

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin