Skip to content

Commit 010292b

Browse files
authored
Fix: Don't check previous versions when checking whether the snapshot is unrevertable (#2195)
1 parent 5850c6a commit 010292b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sqlmesh/core/plan/builder.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -582,10 +582,7 @@ def _ensure_no_forward_only_revert(self) -> None:
582582
and not promoted.is_paused
583583
and not candidate.is_forward_only
584584
and not candidate.is_indirect_non_breaking
585-
and (
586-
promoted.version == candidate.version
587-
or candidate.data_version in promoted.previous_versions
588-
)
585+
and promoted.version == candidate.version
589586
):
590587
raise PlanError(
591588
f"Attempted to revert to an unrevertable version of model '{name}'. Run `sqlmesh plan` again to mitigate the issue."

0 commit comments

Comments
 (0)