MCPcopy
hub / github.com/tirth8205/code-review-graph / _set_schema_version

Function _set_schema_version

code_review_graph/migrations.py:34–39  ·  view source on GitHub ↗

Set the schema version in the metadata table.

(conn: sqlite3.Connection, version: int)

Source from the content-addressed store, hash-verified

32
33
34def _set_schema_version(conn: sqlite3.Connection, version: int) -> None:
35 """Set the schema version in the metadata table."""
36 conn.execute(
37 "INSERT OR REPLACE INTO metadata (key, value) VALUES ('schema_version', ?)",
38 (str(version),),
39 )
40
41
42_KNOWN_TABLES = frozenset({

Callers 1

run_migrationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected