Skip to content

Commit

Permalink
Move the new checkpoint_id index to the end.
Browse files Browse the repository at this point in the history
This way, existing deployments will apply the new migration also.
  • Loading branch information
tjni committed Dec 12, 2024
1 parent b55e70a commit ba4e33c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions langgraph/checkpoint/mysql/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
CREATE INDEX checkpoints_thread_id_idx ON checkpoints (thread_id);
""",
"""
CREATE INDEX checkpoints_checkpoint_id_idx ON checkpoints (checkpoint_id);
""",
"""
CREATE INDEX checkpoint_blobs_thread_id_idx ON checkpoint_blobs (thread_id);
""",
"""
CREATE INDEX checkpoint_writes_thread_id_idx ON checkpoint_writes (thread_id);
""",
"""
CREATE INDEX checkpoints_checkpoint_id_idx ON checkpoints (checkpoint_id);
""",
]

SELECT_SQL = f"""
Expand Down

0 comments on commit ba4e33c

Please sign in to comment.