ln_gateway::db

Function migrate_to_v5

Source
async fn migrate_to_v5(ctx: MigrationContext<'_>) -> Result<(), Error>
Expand description

Introduced in v0.5, there is a db key clash between the FederationConfig record and the isolated databases used for each client. We must migrate the isolated databases to be behind the ClientDatabase prefix to allow the gateway to properly read the federation configs.