The help tells me I should unlock my encrypted wallet:

```
> help migratewallet

...
Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.
```

But when I do so and attempt to migrate the wallet I'm told that I've entered my password for needlessly:

```
> migratewallet

Error: migratewallet on encrypted wallets is currently unsupported.
```

<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

v24.0.1

}
    // Persist added address book entries (labels, purpose) for watchonly and solvabls
    auto persist_address_book = [](const CWallet& ) {
        LOCK(.cs_);
        WalletBatch batch{.GetDatabase()};
        for (const auto& [destination, addr_book_data]  .m_address_book) {
            auto address{EncodeDestination(destination)};
            auto purpose{addr_book_data.purpose};
            auto label{addr_book_data.GetLabel()};
            // don't bot
            if (purpose != "unknown") batch.WritePurpose(address, purpose);
            if (!label.empty()) batch.WriteName(address, label);
        }
    };
    if (data.watchonly_) persist_address_book(*data.watchonly_);
    if (data.solvable_) persist_address_book(*data.solvable_);
    // Remove the things to delete
    if (dests_to_delete.size() > 0) {
        for (const auto& dest  dests_to_delete) {
            if (!DelAddressBook(dest)) {
                error = _("Error Unable to remove watchonly address book data");
                return false;
            }
        }
    }
    // Connect the SPKM signals
    ConnectScriptPubKeyManNotifiers();
    NotifyCanGetAddressesChanged();
    WalletLogPrintf("Wallet migration complete.\n");
    return true;