Skip to content

Commit

Permalink
Limit index name to 64 characters for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
schustmi committed Jan 30, 2025
1 parent edeb606 commit 7f3136a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zenml/zen_stores/schemas/schema_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def get_index_name(table_name: str, column_names: List[str]) -> str:
The index name.
"""
columns = "_".join(column_names)
return f"ix_{table_name}_{columns}"
return f"ix_{table_name}_{columns}"[64:]


def build_index(
Expand Down

0 comments on commit 7f3136a

Please sign in to comment.