fix: update command to gather tenant ids

This commit is contained in:
kurokobo
2025-05-31 13:52:31 +00:00
parent 7a7247fa95
commit 2aef31eaf9
3 changed files with 6 additions and 6 deletions

View File

@@ -293,9 +293,9 @@ You can delete old logs by specifying the number of days using the `clear-free-p
1. Gather the tenant ID
```bash
$ docker exec -it docker-api-1 bash -c "echo 'db.session.query(Tenant).all(); quit()' | flask shell"
$ docker exec -it docker-api-1 bash -c "echo 'from models import Tenant; db.session.query(Tenant.id, Tenant.name).all(); quit()' | flask shell"
...
>>> [<Tenant 618b5d66-a1f5-4b6b-8d12-f171182a1cb2>]
>>> [('618b5d66-a1f5-4b6b-8d12-f171182a1cb2', "Dify's Workspace")]
```
- In this example, the tenant ID is `618b5d66-a1f5-4b6b-8d12-f171182a1cb2`.

View File

@@ -288,9 +288,9 @@ Dify はデータベース上の古いログやストレージ上の未使用の
1. テナント ID を確認する
```bash
$ docker exec -it docker-api-1 bash -c "echo 'db.session.query(Tenant).all(); quit()' | flask shell"
$ docker exec -it docker-api-1 bash -c "echo 'from models import Tenant; db.session.query(Tenant.id, Tenant.name).all(); quit()' | flask shell"
...
>>> [<Tenant 618b5d66-a1f5-4b6b-8d12-f171182a1cb2>]
>>> [('618b5d66-a1f5-4b6b-8d12-f171182a1cb2', "Dify's Workspace")]
```
- この例では、テナント ID が `618b5d66-a1f5-4b6b-8d12-f171182a1cb2` であることがわかります。

View File

@@ -293,9 +293,9 @@ Dify**不会**自动删除数据库中的旧日志或存储中的未使用文件
1. 获取租户 ID
```bash
$ docker exec -it docker-api-1 bash -c "echo 'db.session.query(Tenant).all(); quit()' | flask shell"
$ docker exec -it docker-api-1 bash -c "echo 'from models import Tenant; db.session.query(Tenant.id, Tenant.name).all(); quit()' | flask shell"
...
>>> [<Tenant 618b5d66-a1f5-4b6b-8d12-f171182a1cb2>]
>>> [('618b5d66-a1f5-4b6b-8d12-f171182a1cb2', "Dify's Workspace")]
```
- 在此示例中,租户 ID 为 `618b5d66-a1f5-4b6b-8d12-f171182a1cb2`。