pub fn try_from_previous_version(
db_dir: &Path,
version: &str,
) -> Result<Option<PathBuf>, String>Expand description
from_previous_version, telling “nothing to copy” (Ok(None)) apart
from “there was data to copy and copying it failed” (Err), which
migrate --prepare must not treat as a fresh start: that would relaunch
the new version without the user’s data (migrations/prepare.rs). Copies
that failed are removed again, so a retry starts clean.