Add history migration script.