Set the schema version in the metadata table.
(conn: sqlite3.Connection, version: int)
| 32 | |
| 33 | |
| 34 | def _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({ |