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

NoForeignKeysError in cross-schema ForeignKeyConstraint after upgrading from Flask-SQLAlchemy 2.5.1 to 3.0.0 #1337

Closed
andreasc-kuehn opened this issue May 8, 2024 · 1 comment

Comments

@andreasc-kuehn
Copy link

After upgrading from Flask-SQLAlchemy 2.5.1 to 3.0.0 with unchanged dependencies (same Flask 2.2.0, same SQLAlchemy 1.4.51, Python 3.9), I am getting NoForeignKeysError on formerly working foreign key definition in cases where the foreign key in a table points to a table field in a different schema.

My recent bug report on this issue was converted to a discussion without any explanation. Therefore I cannot understand if I submitted this error in the wrong way, if I missed something or if there were any other complaints about my bug report that make it reasonable to ignore it without commenting. I now tried to refactor the title in a wording that seems to be more SQLAlchemy language like to draw again your attention.

Although the runtime error occurs in SQLAlchemy, the origin of the issue must have to do with Flask-SQLAlchemy. If something in my (declarative) table definitions is outdated or wrong, you could maybe find the time to give a comment.

@davidism
Copy link
Member

davidism commented May 8, 2024

Duplicate of #1331

@davidism davidism closed this as completed May 8, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants