perf: 优化迁移后的 Redis 数据库平台从 Redis6+ 修改为 Redis6

pull/10394/head
Bai 2023-05-04 17:16:48 +08:00 committed by Jiangjie.Bai
parent 22b56d73b6
commit 127f6730f6
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def migrate_database_to_asset(apps, *args):
platform_model = apps.get_model('assets', 'Platform')
applications = app_model.objects.filter(category='db')
platforms = platform_model.objects.all().filter(internal=True)
platforms = platform_model.objects.all().filter(internal=True).exclude(name='Redis6+')
platforms_map = {p.type: p for p in platforms}
print()