> ## Documentation Index
> Fetch the complete documentation index at: https://docs.datafold.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How a migration works

> The stages of a Datafold migration, what you receive at the end, and how responsibilities split between your team and the delivery team.

A Datafold migration moves your data stack from a legacy system to a new one, and modernizes it along the way, as far as your contract provides. Your delivery team translates and validates every object in scope, and you answer questions and decide on exceptions.

Your **delivery team** is the engineers who run the migration in Datafold: Datafold's own engineers, a Datafold partner, or both together. Your contract says which. These pages apply either way.

An **object** is anything in the migration: a table, view, stored procedure, job or pipeline.

Three things on your side mostly set the pace of a migration: how quickly the delivery team gets connected, how fast answers and reviews come back, and how clearly "done" is defined before work starts.

## Stages

**1. Prepare**

Your contract sets which objects are in scope and how far each is modernized, from a like-for-like move to a redesign. Your team then gives Datafold access to your code, your legacy system, your target system and your LLM provider. Work starts once Datafold can reach all four. See [Before kick-off](https://docs.datafold.com/migrations/before-kickoff.md).

**2. Deliver**

The delivery team translates the objects in scope, validates each one against your legacy system, and delivers them as pull requests in your repository. You answer questions and decide on exceptions along the way. See [Working together](https://docs.datafold.com/migrations/working-together.md).

**3. Sign off**

You review the validation evidence and sign off. You then have the code, the validation evidence and the documentation to operate it. See [Sign-off and handover](https://docs.datafold.com/migrations/working-together.md#sign-off-and-handover).

## What you receive

Everything is delivered into your own version control.

| Deliverable | What it is |
| :- | :- |
| **Validated code** | Code that follows your target platform's best practices and the coding standards you agree with the delivery team, ready for your deployment and UAT process. |
| **Validation evidence** | For every object, the results of comparing it with your legacy system, with each remaining difference explained. |
| **Handover documentation** | Architecture decisions, model documentation and runbooks, so your team can own and operate the result. |

## Who does what

| | Delivery team | Your team |
| :- | :- | :- |
| **Scope** | Analyzes the code and proposes the scope | Confirms the scope list and hands over the full codebase |
| **Access** | Lists the access and network paths needed | Grants access and keeps it working |
| **Translation** | Translates every in-scope object | Answers business-logic questions and agrees coding standards |
| **Validation** | Validates every object and explains each remaining difference | Decides on exceptions |
| **Review** | Opens pull requests with validation evidence | Reviews pull requests, if you choose to |
| **Deployment** | Supports deployment and UAT | Promotes code to production through your own change process, unless contracted otherwise |

Datafold or the partner delivering your migration operates your Datafold deployment. See [Deployment options](https://docs.datafold.com/datafold-deployment/datafold-deployment-options.md).

## Before you start

* [Before kick-off](https://docs.datafold.com/migrations/before-kickoff.md): what to prepare before the migration starts.
* [Connect your systems](https://docs.datafold.com/connect/overview.md): the setup guides for each system.
* [Security and data handling](https://docs.datafold.com/security/data-handling.md): material for your security review.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.