From 2fbf9434c3c3e7ea178eeb2f32ae19b1162e3809 Mon Sep 17 00:00:00 2001 From: ivanauth Date: Mon, 5 Jan 2026 13:47:08 -0500 Subject: [PATCH] feat: add ERROR_REASON_DATASTORE_NOT_MIGRATED error code --- authzed/api/v1/error_reason.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/authzed/api/v1/error_reason.proto b/authzed/api/v1/error_reason.proto index ec1baf3..76ea1e8 100644 --- a/authzed/api/v1/error_reason.proto +++ b/authzed/api/v1/error_reason.proto @@ -413,4 +413,17 @@ enum ErrorReason { // } // } ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE = 29; + + // The request failed because the datastore has not been migrated. + // This typically indicates that the `spicedb datastore migrate` command + // has not been run against the backing database. + // + // Example of an ErrorInfo: + // + // { + // "reason": "ERROR_REASON_DATASTORE_NOT_MIGRATED", + // "domain": "authzed.com", + // "metadata": {} + // } + ERROR_REASON_DATASTORE_NOT_MIGRATED = 30; }