Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions sqlmesh/core/state_sync/db/migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def _migrate_snapshot_rows(
"updated_ts": updated_ts,
"unpaused_ts": unpaused_ts,
"unrestorable": unrestorable,
"forward_only": forward_only,
}
for where in (
snapshot_id_filter(
Expand All @@ -237,10 +238,16 @@ def _migrate_snapshot_rows(
if snapshots is not None
else [None]
)
for name, identifier, raw_snapshot, updated_ts, unpaused_ts, unrestorable in fetchall(
for name, identifier, raw_snapshot, updated_ts, unpaused_ts, unrestorable, forward_only in fetchall(
self.engine_adapter,
exp.select(
"name", "identifier", "snapshot", "updated_ts", "unpaused_ts", "unrestorable"
"name",
"identifier",
"snapshot",
"updated_ts",
"unpaused_ts",
"unrestorable",
"forward_only",
)
.from_(self.snapshot_state.snapshots_table)
.where(where)
Expand Down