namespace ZB.MOM.WW.Secrets.Abstractions; /// /// Provisions the schema backing an . Implementations are idempotent — /// running a migration repeatedly is safe — and refuse to run against a store whose on-disk schema /// version is newer than the build supports, rather than silently downgrading it. /// /// /// This seam exists so the startup migration hosted service and the CLI stay store-agnostic: the /// SQLite store, the shared SQL-Server store, and any future provider are all provisioned through /// the same call, and swapping the store never touches the migration wiring. /// public interface ISecretsStoreMigrator { /// Creates or updates the secret-store schema to the version this build supports. /// A token to cancel the operation. /// A task that completes when the schema is at the supported version. /// /// The store's schema version is newer than this build supports. /// Task MigrateAsync(CancellationToken cancellationToken); }