Name of the app: flask-db-heroku-project
Website: https://flask-db-heroku-project.herokuapp.com/
$ heroku run python
$ heroku pg:psql --app <name of the app>
select * from <table name>;
- Specifying a Python version
- Specifying a Python Runtime
- set
SQLAlchemy==1.3.24
and notSQLAlchemy==1.4.<
withpip install SQLAlchemy==1.3.24
- Use SQL with
flask_sqlalchemy
- What does Autogenerate Detect (and what does it not detect?) during
flask db migrate -m "...migration message"
- Show tables in your db: First, choose your database:
$ \c database_name
Then, this shows all tables in the current schema:
$ \dt
- How I solved issue with:
$ INFO [alembic.env] No changes in schema detected.
I created another project connected to the same DB. Then, I copied some files of versions... and that's it. It worked after that in the current project. I do not know exactly what was a problem.