feat: 默认数据库使用 PostgreSQL (#13088)

Co-authored-by: 吴小白 <296015668@qq.com>
Co-authored-by: Bryan <jiangjie.bai@fit2cloud.com>
pull/13153/head
fit2bot 2024-04-29 11:46:16 +08:00 committed by GitHub
parent 928f564109
commit 7806a13db5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 510 additions and 398 deletions

View File

@ -30,10 +30,10 @@ BOOTSTRAP_TOKEN:
# DB_ENGINE: sqlite3 # DB_ENGINE: sqlite3
# DB_NAME: # DB_NAME:
# MySQL or postgres setting like: # MySQL or postgres setting like:
# 使用Mysql作为数据库 # 使用 PostgreSQL 作为数据库
DB_ENGINE: mysql DB_ENGINE: postgresql
DB_HOST: 127.0.0.1 DB_HOST: 127.0.0.1
DB_PORT: 3306 DB_PORT: 5432
DB_USER: jumpserver DB_USER: jumpserver
DB_PASSWORD: DB_PASSWORD:
DB_NAME: jumpserver DB_NAME: jumpserver

895
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -125,7 +125,7 @@ botocore = "1.31.9"
s3transfer = "0.6.1" s3transfer = "0.6.1"
kubernetes = "27.2.0" kubernetes = "27.2.0"
mysqlclient = "2.2.0" mysqlclient = "2.2.0"
pymysql = "1.1.0" pymssql = "2.2.8"
django-redis = "5.3.0" django-redis = "5.3.0"
python-redis-lock = "4.0.0" python-redis-lock = "4.0.0"
pyopenssl = "23.2.0" pyopenssl = "23.2.0"
@ -156,6 +156,8 @@ lxml = "4.9.3"
receptorctl = "^1.4.5" receptorctl = "^1.4.5"
polib = "^1.2.0" polib = "^1.2.0"
tqdm = "^4.66.1" tqdm = "^4.66.1"
# psycopg2 = "2.9.6"
psycopg2-binary = "2.9.6"
[tool.poetry.group.xpack] [tool.poetry.group.xpack]
optional = true optional = true
@ -176,9 +178,6 @@ aliyun-python-sdk-core-v3 = "2.13.33"
aliyun-python-sdk-ecs = "4.24.64" aliyun-python-sdk-ecs = "4.24.64"
keystoneauth1 = "5.2.1" keystoneauth1 = "5.2.1"
oracledb = "1.4.0" oracledb = "1.4.0"
psycopg2-binary = "2.9.6"
pymssql = "2.2.8"
# psycopg2 = "2.9.6"
ucloud-sdk-python3 = "0.11.50" ucloud-sdk-python3 = "0.11.50"
huaweicloudsdkecs = "3.1.52" huaweicloudsdkecs = "3.1.52"
huaweicloudsdkcore = "3.1.52" huaweicloudsdkcore = "3.1.52"