add the migrations script (#605)

Co-authored-by: Riskey <riskey47@dify.ai>
This commit is contained in:
Riskey
2025-12-11 12:30:38 +08:00
committed by GitHub
parent 3a441d28f1
commit 82f45309ca
2 changed files with 391 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ Safest path. Creates a backup before upgrading so you can restore if anything go
- Currently running Weaviate 1.19
- Docker + Docker Compose installed
- Python 3.11+ available for the schema migration script
- Python 3.11+ available for the [schema migration script](/assets/migrate_weaviate_collections.py)
#### Step A1: Enable the Backup Module on Weaviate 1.19
@@ -237,7 +237,7 @@ sleep 15
pip install weaviate-client requests
```
2. **Run the migration script:**
2. **Run the [migration script](/assets/migrate_weaviate_collections.py):**
```bash
python3 migrate_weaviate_collections.py
@@ -267,7 +267,7 @@ Only use this path if you already upgraded to 1.27+ and your knowledge bases sto
- Currently running Weaviate 1.27+ (including 1.33)
- Docker + Docker Compose installed
- Python 3.11+ for the migration script
- Python 3.11+ for the [migration script](/assets/migrate_weaviate_collections.py)
#### Step B1: Repair Orphaned LSM Data