mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-26 13:18:34 +07:00
fix: update command to gather tenant ids
This commit is contained in:
@@ -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`.
|
||||
|
||||
@@ -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` であることがわかります。
|
||||
|
||||
@@ -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`。
|
||||
|
||||
Reference in New Issue
Block a user