One step in a schema version migration chain. More...
#include <phosphor-config/include/PhosphorConfig/Schema.h>
Public Attributes | |
| int | fromVersion = 0 |
| std::function< void(QJsonObject &)> | migrate |
One step in a schema version migration chain.
Transforms the root JSON document in place from fromVersion to fromVersion+1. Implementations MUST stamp the new version under Schema::versionKey before returning; MigrationRunner verifies the bump happened and aborts the chain otherwise.
| int PhosphorConfig::MigrationStep::fromVersion = 0 |
| std::function<void(QJsonObject&)> PhosphorConfig::MigrationStep::migrate |