sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (6125, "Failed to add the foreign key constraint. Missing unique key for constraint 'planets_ibfk_1' in the referenced table 'Stars'")
[SQL: ALTER TABLE Planets ADD FOREIGN KEY (st_id) REFERENCES Stars(st_id) ON DELETE NO ACTION ON UPDATE NO ACTION]
Return to original database,
work back in the code.
line 2070 of plandb_methods
sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (6125, "Failed to add the foreign key constraint. Missing unique key for constraint 'planets_ibfk_1' in the referenced table 'Stars'")
[SQL: ALTER TABLE Planets ADD FOREIGN KEY (st_id) REFERENCES Stars(st_id) ON DELETE NO ACTION ON UPDATE NO ACTION]
Return to original database,
work back in the code.
line 2070 of plandb_methods