Dowser.OpenSearch.Migration.Adapter (Dowser.OpenSearch v0.4.0)

View Source

Runs Dowser.Migrations against OpenSearch — the Dowser.Migration.Adapter every use Dowser.OpenSearch.Repo names, so mix dowser.migrate works on an OpenSearch repo without configuration.

It keeps the migrations run, and the migration lock, in the dowser_schema_migrations index, created on the first run: one document per migration (its version as id), and one lock document — created with op_type=create, so only one migrator can hold it.

Responses are read as the cluster sends them: the repo's decoder, which casts documents, never sees them.