Skip to content

Commit b166ff2

Browse files
authored
chore: document multi-repo migrations (#4185)
1 parent 8000bfb commit b166ff2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/guides/multi_repo.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@ gateways:
184184

185185
Even if you do not have a need for multiple repos now, consider adding a `project` key so that you can easily support multiple repos in the future.
186186

187+
## Running migrations with multiple repositories
188+
189+
When doing a [migration](./migrations.md), pass in a single repo path using the `-p` flag. It doesn't matter which repo you choose.
190+
191+
```
192+
$ sqlmesh -p examples/multi/repo_1 migrate
193+
```
194+
187195
## Multi-Repo dbt projects
188196

189197
SQLMesh also supports multiple repos for dbt projects, allowing it to correctly detect changes and orchestrate backfills even when changes span multiple dbt projects.

0 commit comments

Comments
 (0)