Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop authored Sep 26, 2023
1 parent d258156 commit c6d4875
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .changes/unreleased/Features-20230926-134728.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: Features
body: Raise a wanring when a contracted model has a numeric field without scale defined
body: Raise a warning when a contracted model has a numeric field without scale defined
time: 2023-09-26T13:47:28.645383-05:00
custom:
Author: emmyoop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
{%- if col['data_type'] is not defined -%}
{%- do col_err.append(col['name']) -%}
{#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}
{#- elif api.Column.create(col['name'], col['data_type'].strip()).is_numeric() -#}
{%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}
{%- do col_naked_numeric.append(col['name']) -%}
{%- endif -%}
Expand Down

0 comments on commit c6d4875

Please sign in to comment.