We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在 django 运行测试时,因为数据库有可能会重新建,而删除旧的索引导致数据库异常,导致无法正常运行测试。 在源代码中,删除索引没有处理可能发生的异常 for index_name in to_delete_indexes: editor.execute(editor._delete_constraint_sql(editor.sql_delete_index, model, index_name)) 我的想法是捕捉到对应的异常,给予相关有用的提醒。
for index_name in to_delete_indexes: editor.execute(editor._delete_constraint_sql(editor.sql_delete_index, model, index_name))
The text was updated successfully, but these errors were encountered:
#16
Sorry, something went wrong.
No branches or pull requests
在 django 运行测试时,因为数据库有可能会重新建,而删除旧的索引导致数据库异常,导致无法正常运行测试。
在源代码中,删除索引没有处理可能发生的异常
for index_name in to_delete_indexes: editor.execute(editor._delete_constraint_sql(editor.sql_delete_index, model, index_name))
我的想法是捕捉到对应的异常,给予相关有用的提醒。
The text was updated successfully, but these errors were encountered: