I have a flask application running with Sql Alchemy. Recently I have modified a table. And did it again. Initially it was working fine. But when I tried to migrate the db with command :
flask db migrate
I am getting error as :
ERROR [root] Error: Target database is not up to date.
With analysis I came to know that last migration was not successful and I have to run the following command to solve it.
flask db stamp head
flask db migrate
flask db upgrade
I did the same but now I am getting error in 'flask db upgrade' as below :
ERROR [root] Error: No support for ALTER of constraints in SQLite dialect
How can this be solved...?
The application is development and I can drop the tables if needed and initialize the db again. If I drop the tables, do I need to drop 'alembic_version' table as well...??