-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with sqlalchemy v2 #505
Comments
It looks like the solution recommended in your change log works for 1.4+ versions only. I would prefer not to break 1.3 users, which are still out there. Is there a way to get the engine URL with the password in a way that is compatible with older SQLAlchemy versions? Or does this need a version check to decide what method to use? |
Looking at 1.3 it had I think your best bet here is to use something like |
I'm still seeing this issue with Flask-Migrate 4.0.4 and SQLAlchemy 2.0.1. I can't run the
|
My guess is that you have a |
@miguelgrinberg you nailed it. I generated a new env.py file with |
Just an heads up, not actually using this package, but SQLAlchemy got a bug report about this: sqlalchemy/sqlalchemy#9225
Current templates use
str(engine.url)
likeFlask-Migrate/src/flask_migrate/templates/flask/env.py
Line 32 in 828c65f
This does not work in sqlalchemy v2:
https://docs.sqlalchemy.org/en/20/changelog/whatsnew_20.html#change-8567
The text was updated successfully, but these errors were encountered: