Merge pull request #182 from kurokobo/housekeeping

fix: update command to gather tenant ids
This commit is contained in:
AllenWriter
2025-06-10 14:05:28 +08:00
committed by GitHub
3 changed files with 22 additions and 22 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`.