Skip to content

Commit 50bb202

Browse files
CarliJoyclaude
authored andcommitted
fix(arangodb): replace deprecated add_hash_index with add_persistent_index
add_hash_index() was removed in python-arango >= 8; persistent indexes are the recommended replacement and cover the same use case. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 54cef56 commit 50bb202

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/community/arangodb/test_arangodb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def arango_test_ops(arango_client, expected_version, username="root", password="
3434
students = database.create_collection("students")
3535

3636
# Add a hash index to the collection.
37-
students.add_hash_index(fields=["name"], unique=True)
37+
students.add_persistent_index(fields=["name"], unique=True)
3838

3939
# Insert new documents into the collection. (students_to_insert_cnt)
4040
students.insert({"name": "jane", "age": 39})

0 commit comments

Comments
 (0)