We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fbfa23 commit 18cfc8cCopy full SHA for 18cfc8c
1 file changed
runtime/bk-plugin-runtime/bk_plugin_runtime/config/__init__.py
@@ -58,12 +58,8 @@ def minimum_database_version(self):
58
django_version = django.VERSION
59
if self.connection.mysql_is_mariadb:
60
return 10, 4
61
- elif django_version < (4, 0):
62
- import pymysql
63
- pymysql.install_as_MySQLdb()
64
- return 5, 7
65
else:
66
- return 8, 0
+ return 5, 7
67
68
# 目前 Django 仅是对 5.7 做了软性的不兼容改动,在没有使用 8.0 特异的功能时,对 5.7 版本的使用无影响
69
DatabaseFeatures.minimum_database_version = PatchFeatures.minimum_database_version
0 commit comments