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`.