v0.3.3-pre.009-fix.003

This commit is contained in:
2026-08-30 14:56:51 +02:00
parent 8da04717b6
commit 5e2f959c01
4 changed files with 114 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-store-postgres-lib/src/migration.rs
// version: 5
// version: 6
use sha2::Digest; // rust-rules: trait-import
@@ -329,7 +329,7 @@ async fn ensure_resource(
std::result::Result::Ok(crate::SchemaResourceState::Compatible) => std::result::Result::Ok(()),
std::result::Result::Ok(crate::SchemaResourceState::Missing | crate::SchemaResourceState::Incompatible) => {
log_schema_resource_block(resource.id, "post_apply_incompatible");
std::result::Result::Err(crate::PostgresBackendError::new(crate::PostgresBackendErrorKind::MigrationMismatch, "schema_resource_post_apply"))
std::result::Result::Err(crate::PostgresBackendError::new(crate::PostgresBackendErrorKind::MigrationMismatch, resource.id))
},
std::result::Result::Err(error) => std::result::Result::Err(error),
};