feat: add datasource OAuth client setup command and refactor related models

This commit is contained in:
Harry
2025-07-18 14:11:08 +08:00
parent f153319a77
commit 6ca5bc1063
5 changed files with 142 additions and 3 deletions

View File

@ -18,6 +18,7 @@ def init_app(app: DifyApp):
reset_email,
reset_encrypt_key_pair,
reset_password,
setup_datasource_oauth_client,
setup_system_tool_oauth_client,
upgrade_db,
vdb_migrate,
@ -42,6 +43,7 @@ def init_app(app: DifyApp):
clear_orphaned_file_records,
remove_orphaned_files_on_storage,
setup_system_tool_oauth_client,
setup_datasource_oauth_client,
]
for cmd in cmds_to_register:
app.cli.add_command(cmd)