From 53f1c764212c5b5aeb7e11a8e18b22654c82fc3d Mon Sep 17 00:00:00 2001 From: dullbananas Date: Fri, 22 Dec 2023 18:01:06 -0700 Subject: [PATCH] Update sql_format_check.sh --- scripts/sql_format_check.sh | 5 +++++ 1 file changed, 5 insertions(+) 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