@@ -1191,7 +1191,7 @@ def columns(table_name):
11911191 snapshot = make_snapshot (model , version = "1" )
11921192 snapshot .change_category = SnapshotChangeCategory .FORWARD_ONLY
11931193
1194- evaluator .migrate ([snapshot ], {})
1194+ evaluator .migrate ([snapshot ], {}, deployability_index = DeployabilityIndex . none_deployable () )
11951195
11961196 cursor_mock .execute .assert_has_calls (
11971197 [
@@ -1226,7 +1226,7 @@ def test_migrate_missing_table(mocker: MockerFixture, make_snapshot):
12261226 snapshot = make_snapshot (model , version = "1" )
12271227 snapshot .change_category = SnapshotChangeCategory .FORWARD_ONLY
12281228
1229- evaluator .migrate ([snapshot ], {})
1229+ evaluator .migrate ([snapshot ], {}, deployability_index = DeployabilityIndex . none_deployable () )
12301230
12311231 cursor_mock .execute .assert_has_calls (
12321232 [
@@ -1262,7 +1262,7 @@ def test_migrate_view(
12621262 snapshot = make_snapshot (model , version = "1" )
12631263 snapshot .change_category = change_category
12641264
1265- evaluator .migrate ([snapshot ], {})
1265+ evaluator .migrate ([snapshot ], {}, deployability_index = DeployabilityIndex . none_deployable () )
12661266
12671267 cursor_mock .execute .assert_has_calls (
12681268 [
@@ -1722,7 +1722,7 @@ def columns(table_name):
17221722 snapshot .change_category = SnapshotChangeCategory .FORWARD_ONLY
17231723
17241724 with pytest .raises (NodeExecutionFailedError ) as ex :
1725- evaluator .migrate ([snapshot ], {})
1725+ evaluator .migrate ([snapshot ], {}, deployability_index = DeployabilityIndex . none_deployable () )
17261726
17271727 destructive_change_err = ex .value .__cause__
17281728 assert isinstance (destructive_change_err , DestructiveChangeError )
@@ -1744,15 +1744,20 @@ def columns(table_name):
17441744
17451745 logger = logging .getLogger ("sqlmesh.core.snapshot.evaluator" )
17461746 with patch .object (logger , "warning" ) as mock_logger :
1747- evaluator .migrate ([snapshot ], {})
1747+ evaluator .migrate ([snapshot ], {}, deployability_index = DeployabilityIndex . none_deployable () )
17481748 assert (
17491749 mock_logger .call_args [0 ][0 ]
17501750 == "\n Plan requires a destructive change to forward-only model '\" test_schema\" .\" test_model\" 's schema that drops column 'b'.\n \n Schema changes:\n ALTER TABLE sqlmesh__test_schema.test_schema__test_model__1 DROP COLUMN b\n ALTER TABLE sqlmesh__test_schema.test_schema__test_model__1 ADD COLUMN a INT"
17511751 )
17521752
17531753 # allow destructive
17541754 with patch .object (logger , "warning" ) as mock_logger :
1755- evaluator .migrate ([snapshot ], {}, {'"test_schema"."test_model"' })
1755+ evaluator .migrate (
1756+ [snapshot ],
1757+ {},
1758+ {'"test_schema"."test_model"' },
1759+ deployability_index = DeployabilityIndex .none_deployable (),
1760+ )
17561761 assert mock_logger .call_count == 0
17571762
17581763
@@ -3638,7 +3643,7 @@ def test_migrate_snapshot(snapshot: Snapshot, mocker: MockerFixture, adapter_moc
36383643 assert new_snapshot .table_name () == snapshot .table_name ()
36393644
36403645 evaluator .create ([new_snapshot ], {})
3641- evaluator .migrate ([new_snapshot ], {})
3646+ evaluator .migrate ([new_snapshot ], {}, deployability_index = DeployabilityIndex . none_deployable () )
36423647
36433648 common_kwargs : t .Dict [str , t .Any ] = dict (
36443649 table_format = None ,
@@ -3706,7 +3711,11 @@ def test_migrate_managed(adapter_mock, make_snapshot, mocker: MockerFixture):
37063711
37073712 # no schema changes - no-op
37083713 adapter_mock .get_alter_expressions .return_value = []
3709- evaluator .migrate (target_snapshots = [snapshot ], snapshots = {})
3714+ evaluator .migrate (
3715+ target_snapshots = [snapshot ],
3716+ snapshots = {},
3717+ deployability_index = DeployabilityIndex .none_deployable (),
3718+ )
37103719
37113720 adapter_mock .create_table .assert_not_called ()
37123721 adapter_mock .create_managed_table .assert_not_called ()
@@ -3716,7 +3725,11 @@ def test_migrate_managed(adapter_mock, make_snapshot, mocker: MockerFixture):
37163725 adapter_mock .get_alter_expressions .return_value = [exp .Alter ()]
37173726
37183727 with pytest .raises (NodeExecutionFailedError ) as ex :
3719- evaluator .migrate (target_snapshots = [snapshot ], snapshots = {})
3728+ evaluator .migrate (
3729+ target_snapshots = [snapshot ],
3730+ snapshots = {},
3731+ deployability_index = DeployabilityIndex .none_deployable (),
3732+ )
37203733
37213734 sqlmesh_err = ex .value .__cause__
37223735 assert isinstance (sqlmesh_err , SQLMeshError )
@@ -3907,7 +3920,9 @@ def columns(table_name):
39073920 )
39083921 snapshot_2 = make_snapshot (model_2 , version = "1" )
39093922 snapshot_2 .change_category = SnapshotChangeCategory .FORWARD_ONLY
3910- evaluator .migrate ([snapshot_1 , snapshot_2 ], {})
3923+ evaluator .migrate (
3924+ [snapshot_1 , snapshot_2 ], {}, deployability_index = DeployabilityIndex .none_deployable ()
3925+ )
39113926
39123927 cursor_mock .execute .assert_has_calls (
39133928 [
0 commit comments