Skip to content

Commit

Permalink
Merge pull request #40 from a180285/main
Browse files Browse the repository at this point in the history
change checkpoint_ns to 255 (temp fix)
  • Loading branch information
tjni authored Dec 21, 2024
2 parents 8345e91 + 7d04b8f commit b54e96c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.mypy_cache/
__pycache__/
.idea/
1 change: 1 addition & 0 deletions langgraph/checkpoint/mysql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def setup(self) -> None:
):
cur.execute(migration)
cur.execute(f"INSERT INTO checkpoint_migrations (v) VALUES ({v})")
cur.execute("COMMIT")

def list(
self,
Expand Down
3 changes: 3 additions & 0 deletions langgraph/checkpoint/mysql/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
"""
CREATE INDEX checkpoints_checkpoint_id_idx ON checkpoints (checkpoint_id);
""",
"ALTER TABLE checkpoints MODIFY COLUMN `checkpoint_ns` VARCHAR(255) NOT NULL DEFAULT '';",
"ALTER TABLE checkpoint_blobs MODIFY COLUMN `checkpoint_ns` VARCHAR(255) NOT NULL DEFAULT '';",
"ALTER TABLE checkpoint_writes MODIFY COLUMN `checkpoint_ns` VARCHAR(255) NOT NULL DEFAULT '';",
]

SELECT_SQL = f"""
Expand Down

0 comments on commit b54e96c

Please sign in to comment.