Skip to content
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

Alembic Migrations: env.py Deprecation Warning from SQLAlchemy > 1.4.x #50

Open
pythononwheels opened this issue Aug 17, 2021 · 1 comment

Comments

@pythononwheels
Copy link
Owner

Produces a warning in running tests.

migrations/env.py:62: SADeprecationWarning: Table.tometadata() is renamed to Table.to_metadata() (deprecated since: 1.4)
    t.tometadata(m)
@pythononwheels
Copy link
Owner Author

Adapt method call to new naming convention for SQLAlchemy > 1.4.x (aka 2.0 API)

@pythononwheels pythononwheels changed the title Alembic Migrations: env.py Deprecation Warining from SQLAlchemy > 1.4.x Alembic Migrations: env.py Deprecation Warning from SQLAlchemy > 1.4.x Aug 17, 2021
pythononwheels pushed a commit that referenced this issue Aug 17, 2021
…able.tometadata() to table.to_metadata().

Occurred as a waring in running tests in env.py (SqlAlchemy Alembic) Migrations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant