Correcting the error alembic util command error can’t find identifier…
This error can appear in different cases. Including if the next commit is made, but the previous one is not sent.
You can try to delete the last file created in the directory migrate on command commit… And try to run the command flask db uprgade…
Or go in a more radical way.
It is worth looking for another way if you do not want the cardinal changes described below.
1. Let’s delete the table in SQL
DROP TABLE alembic_version;
2. Let’s delete the directory in the project migrate…
3. Let’s do the migration again:
flask db init
flask db migrate -m “Initial migration.”
flask db upgrade