Skip to content

Commit 56b25f0

Browse files
authored
Merge pull request #159 from ivanauth/feat/error-reason-datastore-not-migrated
feat: add ERROR_REASON_DATASTORE_NOT_MIGRATED error code
2 parents e64729d + 2fbf943 commit 56b25f0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

authzed/api/v1/error_reason.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,4 +413,17 @@ enum ErrorReason {
413413
// }
414414
// }
415415
ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE = 29;
416+
417+
// The request failed because the datastore has not been migrated.
418+
// This typically indicates that the `spicedb datastore migrate` command
419+
// has not been run against the backing database.
420+
//
421+
// Example of an ErrorInfo:
422+
//
423+
// {
424+
// "reason": "ERROR_REASON_DATASTORE_NOT_MIGRATED",
425+
// "domain": "authzed.com",
426+
// "metadata": {}
427+
// }
428+
ERROR_REASON_DATASTORE_NOT_MIGRATED = 30;
416429
}

0 commit comments

Comments
 (0)