# Take a CoreMVP update (/en/docs/deployment/after-launch/take-an-update)

Bring an upstream update into your repository and check its migration compatibility before shipping.

**Give your agent this prompt:**

```text interactive=true
Prepare a CoreMVP update for my app from its configured upstream.
Follow https://coremvp.com/en/docs/deployment/after-launch/take-an-update.md and its prerequisites.
Open the local home page and exercise affected features; finish when they pass and a local commit is ready. Ask me before a deploy-triggering push, destructive migration, merge or production change.
Report what changed, the check results and anything you could not run.
```

**You'll need**

CoreMVP set as your `upstream` remote, as in
[After purchase](/en/docs/getting-started/after-purchase).

### 1. See what changed

```bash
git fetch upstream
git log --oneline main..upstream/main
git diff main...upstream/main --stat
```

Read the changes, especially new files under `supabase/migrations/`.

### 2. Bring them in on a branch

```bash
git switch main && git pull
git switch -c take-coremvp-update
git merge upstream/main
```

Resolve any conflicts with your own changes, then open the local home page as in [Quickstart](/en/docs/quickstart) and exercise each affected feature.

### 3. Ship it

Inspect the full migration diff:

```bash
git diff main...take-coremvp-update -- supabase/migrations
```

Stop if the update changes a migration already applied to Production; do not edit applied migrations. If there are no added migrations, open a pull request for `take-coremvp-update` and merge
it, as in [Ship a change](/en/docs/deployment/after-launch/ship-a-change).

If there are some, read each one. Only after checking that each migration is compatible with the live app and
can run independently of the update, consider merging those files first
from your resolved update branch
([Add first, use later](/en/docs/deployment/after-launch/ship-a-change#add-first-use-later)):

Replace `<new-file>` with the full migration filename, including `.sql`.

```bash
git switch main && git switch -c take-coremvp-migrations
```

Run the following checkout once for each new migration before committing:

```bash interactive=true
git checkout take-coremvp-update -- supabase/migrations/<new-file>
```

Then commit and push:

```bash
git commit -m "Add CoreMVP update migrations"
git push -u origin take-coremvp-migrations
gh pr create --fill
```

Merge
that pull request and wait for Supabase's check to pass. Update the full
update branch from `main`, resolve any conflicts, and check that migrations
are not duplicated before opening its pull request. Run local checks again.

If a new migration renames, drops or tightens something your live code
still uses, don't merge it first. Split it as in
[Add first, use later](/en/docs/deployment/after-launch/ship-a-change#add-first-use-later),
or ask in [Get support](/en/docs/support) before you merge.

## Check it works

The merged commit shows passing checks from Supabase and your host, and your
own features still work on your URL.
