MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / _extend_state_schema

Function _extend_state_schema

core/checkpoint.py:309–320  ·  view source on GitHub ↗

Add checkpoints table to state schema.

()

Source from the content-addressed store, hash-verified

307
308# State store extensions for checkpoints
309def _extend_state_schema():
310 """Add checkpoints table to state schema."""
311 state = get_state_store()
312 state.execute("""
313 CREATE TABLE IF NOT EXISTS checkpoints (
314 id TEXT PRIMARY KEY,
315 created_at INTEGER NOT NULL,
316 reason TEXT NOT NULL,
317 files_modified TEXT,
318 git_commit_hash TEXT
319 )
320 """)
321
322
323# Initialize on import

Callers 1

checkpoint.pyFile · 0.85

Calls 2

get_state_storeFunction · 0.90
executeMethod · 0.80

Tested by

no test coverage detected