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

Missing Foreign Key #20

Open
andrewchiu198 opened this issue Nov 11, 2024 · 0 comments
Open

Missing Foreign Key #20

andrewchiu198 opened this issue Nov 11, 2024 · 0 comments

Comments

@andrewchiu198
Copy link
Contributor

sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (6125, "Failed to add the foreign key constraint. Missing unique key for constraint 'orbitfits_ibfk_1' in the referenced table 'Planets'")
[SQL: ALTER TABLE OrbitFits ADD FOREIGN KEY (pl_id) REFERENCES Planets(pl_id) ON DELETE NO ACTION ON UPDATE NO ACTION]

Return to original database schema,
work back in the commented out code.
line 2086 of plandb_methods

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