2023-08-02 16:44:51 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# This check is only used for CI.
|
|
|
|
|
|
|
|
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
|
|
|
|
|
|
cd $CWD/../
|
|
|
|
|
|
|
|
find migrations -type f -name "*.sql" -print0 | while read -d $'\0' FILE
|
|
|
|
do
|
|
|
|
TMP_FILE="/tmp/tmp_pg_format.sql"
|
|
|
|
pg_format $FILE > $TMP_FILE
|
2023-09-06 13:13:30 +00:00
|
|
|
diff -u $FILE $TMP_FILE
|
2023-08-02 16:44:51 +00:00
|
|
|
done
|