Add checkpoints table to state schema.
()
| 307 | |
| 308 | # State store extensions for checkpoints |
| 309 | def _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 |
no test coverage detected