Add support for migrating logs [BROKEN and MISSING TESTS]