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
- A new folder called migration has created Refer Here
- Now run the
flask db migrate
command to create database and tables in the versions - Now run the
flask db upgrade