Skip to content

Commit 6234945

Browse files
committed
fix: use provided deployability index
1 parent e4ea4c8 commit 6234945

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

sqlmesh/core/snapshot/evaluator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,6 @@ def _migrate_snapshot(
916916
if not snapshot.requires_schema_migration_in_prod:
917917
return
918918

919-
deployability_index = DeployabilityIndex.all_deployable()
920919
render_kwargs: t.Dict[str, t.Any] = dict(
921920
engine_adapter=adapter,
922921
snapshots=parent_snapshots_by_name(snapshot, snapshots),

tests/core/test_snapshot_evaluator.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,9 +1383,6 @@ def test_migrate_snapshot_data_object_type_mismatch(
13831383
adapter.cursor.execute.assert_has_calls(
13841384
[
13851385
call('DROP TABLE IF EXISTS "sqlmesh__test_schema"."test_schema__test_model__1"'),
1386-
call(
1387-
'CREATE VIEW "sqlmesh__test_schema"."test_schema__test_model__1" AS SELECT "c" AS "c", "a" AS "a" FROM "tbl" AS "tbl"'
1388-
),
13891386
]
13901387
)
13911388

0 commit comments

Comments
 (0)