{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://docs.rs/sqlite-graphrag/schemas/migrate-rehash.schema.json",
"title": "sqlite-graphrag migrate --rehash response",
"description": "JSON contract for the `migrate --rehash --json` subcommand added in v1.0.76. Rewrites recorded migration checksums in refinery_schema_history to match the current migration file content using SipHasher13. Required for v1.0.74 databases upgrading to v1.0.76 because V002 was intentionally emptied to a no-op.",
"type": "object",
"additionalProperties": false,
"required": ["action", "rewritten", "skipped", "errors", "elapsed_ms"],
"properties": {
"action": {
"type": "string",
"const": "rehashed"
},
"rewritten": {
"type": "integer",
"minimum": 0,
"description": "Number of migration rows whose checksum was rewritten to match the current file content."
},
"skipped": {
"type": "integer",
"minimum": 0,
"description": "Number of migration rows that already had a matching checksum and required no rewrite."
},
"errors": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["version", "name", "message"],
"properties": {
"version": {
"type": "integer",
"minimum": 0
},
"name": {
"type": "string"
},
"message": {
"type": "string"
}
}
},
"description": "Per-migration errors encountered during the rewrite. Empty when the database was healthy."
},
"namespace": {
"type": ["string", "null"],
"description": "Active namespace at the time of the operation. Null when the database is uninitialized."
},
"db_path": {
"type": "string",
"description": "Absolute path of the database file that was processed."
},
"elapsed_ms": {
"type": "integer",
"minimum": 0
}
},
"examples": [
{
"action": "rehashed",
"rewritten": 1,
"skipped": 12,
"errors": [],
"namespace": "global",
"db_path": "/home/user/graphrag.sqlite",
"elapsed_ms": 8
}
]
}