Skip to content

Commit 35013b7

Browse files
committed
Update docs/guides/migrations.md
Co-authored-by: Michael Day <mdaytn@gmail.com> Signed-off-by: Adegbite Ayoade <tripleaceme@gmail.com>
1 parent a3ecc6f commit 35013b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/guides/migrations.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Therefore, it is not recommended to issue migrations from CI/CD pipelines.
3939

4040
## Rolling back a migration
4141

42-
Before `sqlmesh migrate` changes the project metadata, it copies each state table to a backup table with a `_backup` suffix. The `sqlmesh rollback` command restores the metadata from those backups, returning it to the format used by the SQLMesh version that was installed before the migration. If a migration fails partway through, SQLMesh rolls it back automatically.
42+
When `sqlmesh migrate` needs to change the project metadata, it first copies each state table to a backup table with a `_backup` suffix, unless `--skip-backup` is passed. The `sqlmesh rollback` command restores the metadata from those backups, returning it to the format used by the SQLMesh version that was installed before the migration. If a migration fails partway through, SQLMesh rolls it back automatically from the same backups.
4343

4444
To undo a migration:
4545

0 commit comments

Comments
 (0)