Pycharm mysql database error report

when pycharm writes models, there is always something wrong with foreign keys, so I delete one of the tables in the mysql database, and then delete the related class in models, and then there are errors such as
1146, "Table "vc_system.df_coinvestors_coinvestor" doesn"t exist".
the first thing I delete is the attribute. The error message is
(1091, "Can"t DROP "VC2"; check that column/key exists"), but even if VC2 is added, it will still report an error

.

how to solve this problem by asking the great god? Graduation thesis, urgent!

Mar.07,2021
Menu