perf: 合并 migrations (#13187)

* perf: 修改 Migrations

* perf: 合并 migrations

* perf: remove unuse

* perf: change to file

---------

Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
fit2bot
2024-05-11 11:22:01 +08:00
committed by GitHub
parent be214c84d1
commit 313202fe41
532 changed files with 30874 additions and 20795 deletions

View File

@@ -70,9 +70,14 @@ def create_system_messages(app_config: AppConfig, **kwargs):
message_type = obj.get_message_type()
sub, created = SystemMsgSubscription.objects.get_or_create(message_type=message_type)
if created:
if not created:
return
try:
obj.post_insert_to_db(sub)
logger.info(f'Create MsgSubscription: package={app_config.module.__package__} type={message_type}')
except:
pass
except ModuleNotFoundError:
pass