Skip to content

Commit

Permalink
Fix: use adapter.get_columns_in_relation (#5232)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 authored May 11, 2022
1 parent 3996a69 commit 72c17c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changes/unreleased/Fixes-20220511-123238.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Fixes
body: Fix column comparison in snapshot_check_all_get_existing_columns to use adapter.get_columns_in_relation
time: 2022-05-11T12:32:38.313321+02:00
custom:
Author: jtcohen6
Issue: "5222"
PR: "5232"
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
{% do exceptions.raise_compiler_error("Invalid value for 'check_cols': " ~ check_cols_config) %}
{% endif %}

{%- set existing_cols = get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}
{%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}
{%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}
{%- set ns.column_added = false -%}

Expand Down

0 comments on commit 72c17c4

Please sign in to comment.