diff --git a/scripts/sql_format_check.sh b/scripts/sql_format_check.sh index a75425da8..7f9b294c6 100755 --- a/scripts/sql_format_check.sh +++ b/scripts/sql_format_check.sh @@ -16,3 +16,8 @@ find $TMP_DIR -type f -name '*.sql' -exec pg_format -i {} + # Diff the directories diff -r migrations $TMP_DIR + +# Check formatting of replaceable_schema.sql +cp -a replaceable_schema.sql $TMP_DIR +pg_format -i $TMP_DIR/replaceable_schema.sql +diff -r replaceable_schema.sql $TMP_DIR/replaceable_schema.sql