async fn migrate_data_to_sd_card(_pool: &SqlitePool) -> Result<(), Error>Expand description
Migrates dynamic data files from the install directory to the SD card data directory on devices with removable storage.
Settings, logs, and dictionaries are moved. The SQLite database is excluded because it is already open when migrations run.
This migration is a no-op when no SD card is present (data_dir equals
install_dir). It will be recorded as succeeded so it does not re-run
on subsequent boots without a card.
Migration ID: v1_migrate_data_to_sd_card
To re-run this migration, delete its tracking row:
DELETE FROM _cadmus_migrations WHERE id = 'v1_migrate_data_to_sd_card';