`flask Db Migrate` Error
We are trying to run a flask db migrate and flask db upgrade which throws the following error: Usage: flask db upgrade [OPTIONS] [REVISION] Error: The file/path provided (C) does
Solution 1:
I think if you are using migrate like you are
migrate.init_app(app, db)
that you first have to import it and then declare it:
from flask_migrate import Migrate
migrate = Migrate()
migrate.init_app(app, db)
or alternatively I think you could do:
from flask_migrate import Migrate
migrate = Migrate(app, db)
Post a Comment for "`flask Db Migrate` Error"